ui.Dialog.setFieldActive

Enable and disable form fields.

Syntax

setFieldActive(
   field-list STRING,
   active BOOLEAN )
  1. field-list is the string with the list of field specification.
  2. active is a boolean value.

Usage

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.*").

ON CHANGE cust_name 
  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.