ui.Dialog.createMultipleDialog

Creates an ui.Dialog object to implement a dynamic DIALOG multiple-dialog.

Syntax

ui.Dialog.createMultipleDialog( )
  RETURNS ui.Dialog

Usage

The ui.Dialog.createMultipleDialog() class method creates a dialog object to implement the equivalent of a static DIALOG / END DIALOG block.

The current form will be attached to the created dialog.

The method takes no parameters.

After creating the multiple dialog object, you must add sub-dialogs with the following methods:

Use the addTrigger() method, to add global or sub-dialog triggers. The scope of the trigger is defined by the addTrigger() call order. See addTrigger() for more details.

A dynamic dialog can be configured with the setDialogAttribute() method.

Example

DEFINE fields DYNAMIC ARRAY OF RECORD
                        name STRING,
                        type STRING
              END RECORD
DEFINE d ui.Dialog
...
LET d = ui.Dialog.createMultipleDialog()
CALL d.addTrigger("ON ACTION close") -- Adds a global trigger for the dialog
...
CALL d.addDisplayArrayTo(fields, "sr_custlist") -- Adds a DISPLAY ARRAY sub-dialog
CALL d.addTrigger("ON ACTION refresh") -- Adds a trigger for the DISPLAY ARRAY sub-dialog
...