The DIALOG control class

Inside the dialog instruction, the predefined keyword DIALOG represents the current dialog object. It can be used to execute methods provided in the dialog built-in class.

For example, you can enable or disable an action with the ui.Dialog.setActionActive() dialog method, and you can hide and show the default action view with ui.Dialog.setActionHidden():
BEFORE INPUT
   CALL DIALOG.setActionActive("zoom",FALSE)
AFTER FIELD field1
   CALL DIALOG.setActionHidden("zoom",1)
The ui.Dialog.setFieldActive() method can be used to enable or disable a field during the dialog. This instruction takes an integer expression as argument.
ON CHANGE custname 
   CALL DIALOG.setFieldActive( "custaddr",
        (cust_arr[arr_curr()].custname IS NOT NULL) )