Carry out the following steps in order to complete this recipe:
- Add a new project Create dialog.
- 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: ...