Identifying screen-arrays in dialog methods
In ui.Dialog
methods such as setCurrentRow()
, the first parameter is the name of the screen array to
identify the list container in the form.
Important: The screen-array passed to
ui.Dialog
methods must be
provided in lowercase letters.Screen arrays are defined in form specification files with the SCREEN RECORD
clause, and used in DISPLAY ARRAY and INPUT ARRAY instructions to bind program array variables to
the list container.
In the form file:
LAYOUT
...
INSTRUCTIONS
SCREEN RECORD custlist ( ... );
END
In the program
code:
DISPLAY ARRAY custarr TO custlist.*
...
ON ACTION set_row
CALL DIALOG.setCurrentRow("custlist", row_index)
...