Creates a new ui.Dialog object to handle an INPUT BY NAME.
ui.Dialog.createInputByName( fields DYNAMIC ARRAY OF RECORD name STRING, type STRING END RECORD )
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.
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.createInputByName(fields) ...