Enabling and Disabling Fields
This method in the Dialog
class allows you to disable fields on a form
during the interactive statement; the field is still visible, but the user cannot edit the value.
Values for the active state of the field can be:
- 0 -
FALSE
, the field is disabled - 1 -
TRUE
, the field is enabled
The reference to the DIALOG
object is provided by the runtime system. Provide
the name of the field and its state to the method.
The following example disables the
store_name
field during an
INPUT
statement: INPUT BY NAME customer.*
BEFORE INPUT
CALL DIALOG.setFieldActive("customer.store_name",0)
...
END INPUT
See the The Dialog class section in the Genero Business Development Language User Guide for a complete list of its methods.