Popup Menu

sebouh181

New Member
Hi all,
I have a popup menu on a certain browser, but i want to add/drop items accroding to a certain condition, like certain users.
so my question is, is it feasible? can we do the items conditional?

Thank you
 
Set the UI with access rights to user level. Have login screenst to the UI, then grant each user access rights. Give some users rights to certain options eg popup menu ......
 

razmig

New Member
Hi Sebouh,

Yes you can add items dynamically. Try this:

The main definition of the menu, containing a single item at first.
Code:
DEFINE MENU POPUP-MENU-BROWSE-1 
       MENU-ITEM m_Menu1         LABEL "Menu1".

ASSIGN BROWSE-1:POPUP-MENU IN FRAME DEFAULT-FRAME = MENU POPUP-MENU-BROWSE-1:HANDLE.
Adding another item:
Code:
DEF VAR m_Menu2 AS WIDGET-HANDLE.
CREATE MENU-ITEM m_Menu2
    ASSIGN PARENT = MENU POPUP-MENU-BROWSE-1:HANDLE
               LABEL  = "Menu2".
 

sebouh181

New Member
maybe this help others so posting too:
after creating the m_Menu2, we surely add a trigger to it, and we cannot find our menu item in the triggers available, so add ...
ON CHOOSE OF m_Menu2 DO:
run Procedure
END.
 
Top