Pop-Up Dialog Boxes in Import Scenarios

When you update specific fields on some forms under certain circumstances, the system displays pop-up dialog boxes where you need to specify an answer (by clicking a button) to a question in order to proceed. For example, when you update the Customer Class value on the Customers (AR303000) form for an existing customer, the system displays a Warning dialog box with the text Please confirm if you want to update current customer settings with the customer class defaults. Otherwise, original settings will be preserved. and the Yes and No buttons. You should click Yes to proceed with changing the customer class.

When you are specifying mapping for an import scenario, when you need to specify an answer to a question that would appear in a pop-up dialog box if the data was being entered manually, you should use a dialog answer command (which has the <Dialog Answer> name) of the Summary object. You should insert this command directly before you map the field that causes the appearance of the dialog box. For the dialog answer, you should select the proper answer from the options available in the Source Field/Value drop-down list on the Mapping tab of the Import Scenarios (SM206025) form. The system selects the Commit check box for the dialog answer command automatically.
Note: In most cases, you can select the summary object as the target object of the dialog answer command, because the dialog answer is shared between all objects of an MYOB Advanced form. You may need to select another object as the target object of the dialog answer command, if you need to overwrite the answer that is specified by the dialog answer command of the Summary object.

Below are the settings in the two rows you would enter on the Mapping tab to update the customer class of an existing customer record. The first row contains the instruction to click Yes in the confirmation dialog box.

Table 1. Example of <Dialog Answer> Command Usage
Target Object Field / Action Name Source Field / Value
Customer Summary <Dialog Answer> ='Yes'
General Info -> Financial Settings Customer Class CUSTOMER CLASS