Kbase P117748: How to hide and view buttons on an ADM2 smartToolbar?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/3/2006 |
|
Status: Unverified
GOAL:
How to hide and view buttons on an ADM2 smartToolbar?
GOAL:
How to hide toolbar buttons?
GOAL:
How to view smartObject toolbar buttons?
FACT(s) (Environment):
OpenEdge 10.x
FIX:
This can be done very simply with the ViewHideActions procedure.
For example button (on a smartDataViewer) trigger code to hide a smartToolbar Add and Save buttons could be as follows:
DEFINE VARIABLE h_toolbar AS HANDLE NO-UNDO.
{get tableIOSource h_toolbar}.
IF VALID-HANDLE(h_toolbar) THEN
DO:
RUN viewHideActions IN h_toolbar ('','ADD, SAVE').
END.
The trigger code to view the buttons is:
DEFINE VARIABLE h_toolbar AS HANDLE NO-UNDO.
{get tableIOSource h_toolbar}.
IF VALID-HANDLE(h_toolbar) THEN
DO:
RUN viewHideActions IN h_toolbar ('ADD,SAVE','').
END.