Dialog methods for DISPLAY ARRAY

The ui.Dialog class offers a set of methods that can be used during a DISPLAY ARRAY instruction.

In the context of a DISPLAY ARRAY dialog, the DIALOG keyword is implicitly available as the dialog object, that you can use to call methods of the ui.dialog class.

To get or set the current row during a DISPLAY ARRAY dialog, use the DIALOG.getCurrentRow() and DIALOG.setCurrentRow() methods. Dialog methods for list dialogs identify the current record list with the name of the screen array used by the dialog:
  ON ACTION current_row
     MESSAGE "Current row is: ", DIALOG.getCurrentRow("sa_cust")
If you need to append, insert or delete rows durign a DISPLAY ARRAY dialog, use the DIALOG.appendRow(), DIALOG.insertRow() and DIALOG.deleteRow() methods:
  ON ACTION delete_current_row ATTRIBUTES(ROWBOUND)
     CALL DIALOG.deleteRow(DIALOG.getCurrentRow("sa_cust")
To group rows by a specific column, you can use the DIALOG.setGroupBy() method:
  BEFORE DISPLAY
     CALL DIALOG.setGroupBy("sa_cust","state")

Go to the The ui.Dialog class chapter in the Genero Business Development Language User Guide for more details about available dialog class methods.