How to do it...

Carry out the following steps in order to complete this recipe:

  1. Add a new project Create dialog.
  2. Add a new Runnable class and rename it MyDialog. Now, add the following code snippet:

Declare all your objects in the class, as shown follows:

        class MyDialog extends RunBase 
        {   
           DialogField    fieldAccount; 
           DialogField    fieldName; 
           DialogField    fieldGroup; 
           DialogField    fieldCurrency; 
           DialogField    fieldPaymTermId; 
           DialogField    fieldPaymMode; 
           CustName       custName; 
           CustGroupId    custGroupId; 
           CurrencyCode   currencyCode; 
           CustPaymTermId paymTermId; 
           CustPaymMode   paymMode; 
 
         public container pack() 
            { 
               return conNull(); 
            } 
 
            public boolean unpack(container _packedClass) 
            { 
              return true; 
            }  
  • Create a dialog method to capture runtime user inputs for customer details: ...

Get Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.