Consultor Eletrônico



Kbase P62881: ADM2: How to enable a button in a smartToolbar
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   26/04/2005
Status: Verified

GOAL:

How to enable a button in a smartToolbar

FACT(s) (Environment):

Progress 9.1D

FIX:

You can use the following code:
DYNAMIC-FUNCTION('modifyDisabledActions':U IN h_dyntoolbar,
INPUT "REMOVE" /* CHARACTER */,
INPUT '' /* CHARACTER */).

DYNAMIC-FUNCTION('enableActions':U IN h_dyntoolbar,
INPUT 'For example, in order to enable the UPDATE and the COPY buttons:

DYNAMIC-FUNCTION('modifyDisabledActions':U IN h_dyntoolbar,
INPUT "REMOVE" /* CHARACTER */,
INPUT 'UPDATE,COPY' /* CHARACTER */).

DYNAMIC-FUNCTION('enableActions':U IN h_dyntoolbar,
INPUT 'UPDATE,COPY' /* CHARACTER */).