This method creates an ui.Dialog object for a dynamic INPUT ARRAY FROM, taking a list of fields as a parameter.
A dynamic Input Array dialog acts like a static Input Array dialog used with the WITHOUT DEFAULTS keywords. It will use the rows from the record as fields before starting the dialog. Yet, at adding a new row, the default field value will be used.
The current form will be attached to the newly created dialog.
ui.Dialog.createInputArrayFrom(
f DYNAMIC ARRAY OF RECORD
name STRING,
type STRING
END RECORD,
screenRecord STRING )
RETURNS ui.Dialog
f is the DYNAMIC ARRAY OF RECORD representing a list of form fields, controlled by the dialog, with the name and type members of a STRING data type.
screenRecord is the name of the screen record (defined with the SCREEN RECORD instruction in form files) that arranges fields into a list view.