The Dialog class / ui.Dialog methods |
Enable and disable form fields.
setFieldActive( field-list STRING, active BOOLEAN )
The setFieldActive() method can be used to enable / disable form fields.
The field-list is a string containing the field qualifier, with an optional prefix ("[table.]column"), or a table prefix followed by a dot and an asterisk ("table.*").
CALL DIALOG.setFieldActive( "customer.cust_addr", (rec.cust_name IS NOT NULL) )
Do not disable all fields of a dialog, otherwise the dialog execution stops (at least one field must get the focus during a dialog execution).
For more details about field name specification, see Identifying fields in dialog methods.