The Dialog class / ui.Dialog methods |
Adds an event trigger to the dynamic dialog
When implementing a dynamic dialog, the addTrigger() method must be used to register the triggers, that need to be handled with user code:
CALL d.addTrigger("ON ACTION print")
Registered dialog triggers are then typically managed in a WHILE loop using the nextEvent() method, to wait for dialog events.
The following triggers are accepted by the addTrigger() method:
Trigger name | Description | Dialog block equivalent |
---|---|---|
ON ACTION action-name | Action handler for the action identified by action-name. | ON ACTION block |
ON APPEND | Row addition action handler for a display array dynamic dialog. | ON APPEND block |
ON DELETE | Row deletion action handler for a display array dynamic dialog. | ON DELETE block |
ON INSERT | Row insertion action handler for a display array dynamic dialog. | ON INSERT block |
ON UPDATE | Row modification action handler for a display array dynamic dialog. | ON UPDATE block |