Consultor Eletrônico



Kbase P182204: How to programmatically CHECK/UNCHECK a TOGGLE-BOX in the ABL
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   08/02/2011
Status: Unverified

GOAL:

How to programmatically CHECK/UNCHECK a TOGGLE-BOX in the ABL

GOAL:

How to change the value of a TOGGLE-BOX widget programmatically

FACT(s) (Environment):

All Supported Operating Systems
Products / Versions

FIX:

The CHECKED attribute of a TOGGLE-BOX widget is akin to the SCREEN-VALUE attribute of other presentation widgets in the ABL. In order to change the value of a TOGGLE-BOX widget programmatically one would set its CHECKED attribute to either a TRUE or FALSE value.

Like other presentation widgets in the ABL you should be aware that programmatically changing its value does not force the execution of the VALUE-CHANGED, ENTRY, LEAVE or other like events. If the programmer needs these events to fire after the value is changed then they need to be fired manually.

e.g.
TOGGLE-1:CHECKED IN FRAME {&FRAME-NAME} = (NOT TOGGLE-1:CHECKED).
APPLY "VALUE-CHANGED" TO TOGGLE-1 IN FRAME {&FRAME-NAME}.