Read-only record list / Usage |
SCHEMA stock DEFINE cust_arr DYNAMIC ARRAY OF customer.* ... DISPLAY ARRAY cust_arr TO sr.* ATTRIBUTES(UNBUFFERED) ... END DISPLAY
Keep in mind that array members are bound to screen array fields by position, so you must make sure that the members of the array are defined in the same order as the screen array fields.
ON ACTION change LET arr[arr_curr()].field1 = newValue()
If the program array has the same structure as a database table (this is the case when the array is defined with a DEFINE LIKE clause), you may not want to display/use some of the columns. You can achieve this by used PHANTOM fields in the screen array definition. Phantom fields will only be used to bind program variables, and will not be transmitted to the front-end for display.