ui.Dialog.createMultipleDialog
Creates a new ui.Dialog
object to implement a dynamic
DIALOG
multiple-dialog.
Syntax
ui.Dialog.createMultipleDialog( )
Usage
The
ui.Dialog.createMultipleDialog()
class method creates a new dialog object to
implement the equivalent of a static DIALOG
/ END DIALOG
block.Note: The current
form will be attached to the new created dialog.
The method takes no parameters.
After creating the mutiple 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.
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
...