Disable multiple icons in dyntoolbar

Steve Barratt

New Member
Hello Peggers,

How do you disable multiple icons in the dyntoolbar?

I can disable the Update, Copy, Add or Delete using

DYNAMIC-FUNCTION('setDisabledActions':U IN h_dyntoolbar,
INPUT "Update" /* CHARACTER */).

However if you add another copy of the above code the last one over-rides the first etc.

Is there another method of choosing different combinations of the state of the dyntoolbar?

There must be another state other than Add, Copy Delete or Update!!

Steve Barratt.
 

Steve Barratt

New Member
Found the answer....

ID P62880 in progress knowledge centre solutions.

You use the modifyDisabledActions function with a comma delimitered list of the buttons to disable.
and then disableActions in dyntoolbar.
i.e.

DYNAMIC-FUNCTION('ModifyDisabledActions':U IN h_dyntoolbar,
INPUT "Remove", INPUT "Update,Copy").

DYNAMIC-FUNCTION('DisabledActions':U IN h_dyntoolbar,
INPUT "ADD", INPUT "Update,Copy").

This will result in both Update and Copy buttons being disabled.

Steve Barratt.
 
Top