web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

to get sales order processing status using display method

(0) ShareShare
ReportReport
Posted on by 1,836
hi,
I want to create the display method on form where where sales order processing status can be display but i am not getting how to do it , can any one help me out with it please .
 
thanks ,regards 
Dinesh
I have the same question (0)
  • Martin Dráb Profile Picture
    237,681 Most Valuable Professional on at
    to get sales order processing status using display method
    Please be more specific? Do you mean that you don't know to create a display method or how the get the status in your specific case (unknown to us)?
  • Dineshkarlekar Profile Picture
    1,836 on at
    to get sales order processing status using display method
    hi martin ,
    thanks for reply 
    i have display method its working fine , i dont have idea about the sales order processing status so that was my issue .
    my code is below.
    [ExtensionOf(tableStr(SalesTable))]
    final class SalesTableProcessingStatus_Extension
    {
        display str SalesOrderProcessingStatus()
        {
            SalesOrderProcessingStatus processingStatus;
    
            if(this.SalesStatus== SalesStatus::Backorder && this.DocumentStatus == DocumentStatus::None)
            {
                processingStatus = SalesOrderProcessingStatus::Active;
            }
            else if(this.SalesStatus== SalesStatus::Backorder && this.DocumentStatus == DocumentStatus::Confirmation)
            {
                processingStatus = SalesOrderProcessingStatus::Confirmed;
            }
            else if(this.SalesStatus== SalesStatus::Backorder && this.DocumentStatus == DocumentStatus::PickingList)
            {
                processingStatus = SalesOrderProcessingStatus::Picked;
            }
            else if(this.SalesStatus== SalesStatus::Backorder && this.DocumentStatus == DocumentStatus::PackingSlip)
            {
                processingStatus = SalesOrderProcessingStatus::PartiallyDelivered;
            }
            else if(this.SalesStatus== SalesStatus::Delivered && this.DocumentStatus == DocumentStatus::PackingSlip)
            {
                processingStatus = SalesOrderProcessingStatus::Delivered;
            }
            else if(this.SalesStatus== SalesStatus::Delivered && this.DocumentStatus == DocumentStatus::Invoice)
            {
                processingStatus = SalesOrderProcessingStatus::PartiallyInvoiced;
            }
            else if(this.SalesStatus== SalesStatus::Invoiced && this.DocumentStatus == DocumentStatus::Invoice)
            {
                processingStatus = SalesOrderProcessingStatus::Invoiced;
            }
            //else if(this.SalesStatus== SalesStatus::Canceled && this.DocumentStatus == DocumentStatus::)
            //{
    
            //}
            
            return  enum2Str(processingStatus);
        }
    }
    
    thanks,
    regards,
    dinesh
  • Martin Dráb Profile Picture
    237,681 Most Valuable Professional on at
    to get sales order processing status using display method
    Do I understand correctly that your problem is resolved? If not, please explain the problem. ("i dont have idea about the sales order processing status" doesn't tell me what logic you want to implement.)
  • Dineshkarlekar Profile Picture
    1,836 on at
    to get sales order processing status using display method
    hi , 
    martin 
    thanks for reply my problem is resolved ,
    i have created the displlay method which changes the status of enum field according to the status of salesorder.salesstatus and salesorder.documentststus ,now its working fine .
     
    thanks,
    regards,
    Dinesh 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans