Creates a new ui.Dialog object to handle a DISPLAY ARRAY.
ui.Dialog.createDisplayArrayTo( fields DYNAMIC ARRAY OF RECORD name STRING, type STRING END RECORD, tabname STRING )
DEFINE fields DYNAMIC ARRAY OF RECORD name STRING, type STRING END RECORDThese names provided in the field definition list must identify form fields defined in the current form. For example, if the current form file defines the following fields:
LAYOUT ... END TABLES customer END ATTRIBUTES EDIT f1 = customer.cust_id; EDIT f2 = customer.cust_name; ... END
LET fields[1].name = "customer.cust_id" LET fields[2].name = "customer.cust_name" ...
The types provided in the field definition list will identify the data type to be used for data input and display.
... INSTRUCTIONS SCREEN RECORD sr_custlist ( customer.cust_id, customer.cust_name, ... ); END
For more details, see Screen records.
DEFINE fields DYNAMIC ARRAY OF RECORD name STRING, type STRING END RECORD DEFINE d ui.Dialog OPEN FORM f1 FROM "custform" DISPLAY FORM f1 LET fields[1].name = "customer.cust_id" LET fields[1].type = "INTEGER" LET fields[2].name = "customer.cust_name" LET fields[2].type = "VARCHAR(50)" ... LET d = ui.Dialog.createDisplayArrayTo(fields, "sr_custlist") ...