User interface programming / Input fields |
This section describes the purpose of the ON CHANGE interaction block.
A typically usage of ON CHANGE is for example with a CHECKBOX, to enable/disable other form elements according to the value of the checkbox field:
INPUT BY NAME rec.* ... ... ON CHANGE input_details -- can be TRUE or FALSE CALL DIALOG.setFieldActive("address1", rec.input_details) CALL DIALOG.setFieldActive("address2", rec.input_details) ... END INPUT
The dialogtouched predefined action can also be used to detect field changes immediately, but with this action you can't get the data in the target variables; this special action should only be used to detect that the user has started to modify data in the current dialog.