Consultor Eletrônico



Kbase P83275: How to activate / deactivate smartPanel buttons depending on username ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   07/02/2011
Status: Verified

GOAL:

How to activate / deactivate smartPanel buttons depending on username ?

GOAL:

How to override which buttons on a smartPanel to enable/disable ?

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x
Windows

FIX:

Use the setDisabledActions and modifyDisabledActions APIs of the smartPanel to ensure the appropriate actions are enabled/disabled.
Anything specified here will overrule what buttons are enabled or disabled as a result of changing panel state.

The location of the API call depends on where the security will be managed - this will either be in the container holding the smartPanel instance, or an object linked directly to the smartPanel.