ENABLE


ENABLE is used to conditionally make a button available to users in input processes or on menus. This can be used to activate buttons when certain conditions or data entered dictate.

    ••••• ENABLE   ••• •••••••••••••••••••••• ••• (AT APPEARANCE # •••)
    (1)            (2) (3)                    (4)                  (5)

(1) T/F execution conditions

(2) Application ID

(3) Field name or button reference name

(4) Occurrence (constant/index)

(5) Appearance (constant/index)

Using the Statement

ENABLE is used in input or menu processes to make a button available for user selection. This can be used for buttons that are conditionally available depending on prior entries, user qualities, databases, interactive phase, and so forth.

The application ID must be left blank if a button reference name (assigned when the button is painted on the image) is used. Otherwise, use an application ID and field name that contains the name of an alpha field containing the button reference name.

Restrictions

ENABLE statements are only valid in image-related event points.

Related Statements

DISABLE

Example

The following example enables the SUBMIT ORDER button only if a valid approval code has already been entered.

          IF       TOE APPROVAL CODE VALID        EQ     1
    T     ENABLE       SUBMIT ORDER               (AT APPEARANCE #    )