Kbase P62880: ADM2: How to disable a button in a smartToolbar
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/26/2005 |
|
Status: Unverified
GOAL:
How to disable 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 "ADD" /* CHARACTER */,
INPUT 'comma separated list of the buttons' /* CHARACTER */).
DYNAMIC-FUNCTION('disableActions':U IN h_dyntoolbar,
INPUT 'comma separated list of the buttons' /* CHARACTER */).For example, in order to disable the UPDATE and the COPY buttons:
DYNAMIC-FUNCTION('modifyDisabledActions':U IN h_dyntoolbar,
INPUT "ADD" /* CHARACTER */,
INPUT 'UPDATE,COPY' /* CHARACTER */).
DYNAMIC-FUNCTION('disableActions':U IN h_dyntoolbar,
INPUT 'UPDATE,COPY' /* CHARACTER */).