DISPLAY ARRAY control blocks execution order

This table shows the order in which the runtime system executes the control blocks in the DISPLAY ARRAY instruction, according to the user action:

Table 1. Control blocks execution order in DISPLAY ARRAY
Context / User action Control Block execution order
Entering the dialog
  1. BEFORE DISPLAY
  2. BEFORE ROW
Moving to a different row
  1. AFTER ROW (the current row)
  2. BEFORE ROW (the new row)
Validating the dialog
  1. AFTER ROW
  2. AFTER DISPLAY
Canceling the dialog
  1. AFTER ROW
  2. AFTER INPUT
Firing the insert or append action for the ON INSERT block
  1. AFTER ROW
  2. ON INSERT
  3. BEFORE ROW
Firing the delete action for the ON DELETE block
  1. AFTER ROW
  2. ON DELETE
  3. BEFORE ROW