Usage / DIALOG control blocks |
The AFTER DISPLAY block is executed when a DISPLAY ARRAY list loses the focus and goes to another sub-dialog.
If the focus leaves the current group and goes to an action view, this trigger is not executed, because the focus did not go to another sub-dialog yet.
In the singular DISPLAY ARRAY instruction, the AFTER DISPLAY is only executed once when the dialog ends, while the AFTER DISPLAY block of the DIALOG instruction is executed each time the list loses the focus.
AFTER DISPLAY is executed after the AFTER ROW block.
When called in this block, the DIALOG.getCurrentRow() function returns the index of the row that you are leaving.
In this example, the AFTER DISPLAY block disables an action that is specific to the current list:
DISPLAY ARRAY p_items TO s_items.* AFTER DISPLAY CALL DIALOG.setActionActive("clear_item_list", FALSE)