How to do it...

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

  1. Add a new class named MyDialogSelect with the following code snippet:
        class MyDialogSelect extends RunBase 
        {  
           DialogField fieldAccount; 
           DialogField fieldName; 
           DialogField fieldGroup; 
           DialogField fieldCurrency; 
           DialogField fieldPaymTermId; 
           DialogField fieldPaymMode; 
 
 
          public container pack() 
          { 
            return conNull(); 
          } 
 
          public boolean unpack(container _packedClass) 
          { 
            return true; 
          } 
  1. Create a dialog method to capture run time user inputs for customer details:
 Object dialog() { Dialog dialog; DialogGroup groupCustomer; DialogGroup groupPayment; dialog = super(); dialog.caption("Customer information"); dialog.allowUpdateOnSelectCtrl(true); fieldAccount = dialog.addField ...

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.