Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add an entry with subitems to an objects functionmenu 1

Status
Not open for further replies.

jdahl

Programmer
Apr 13, 2004
4
DE
Hello,

is it possible to add an entry to an objects functionmenu which contains subitems, like the "info" menu (not in the info menu)?

Since I visited the builder course I know how to create an entry in the function menu by orphaning WebNodeCmd. What I need is a new entry where I can create subitems which trigger the actions.

thanks
 
This is one of those things in Livelink that you have to work through by looking at the existing functionality. A quick look at the WEBNODE:Webnode Root:WebNodeAction:FunctionsMenu object shows that the "Info" menu has subordering associated with it. The FunctionMenu object is called each time the menu option is selected bu a user. It generates the items that are displayed in the functions menu.

The order is an internal feature of each menu item that shows up in the function menu. The info menu item is different from the other menu items in that it is the primary item with an order value of 11 and the subsequent sub menu items have order values of 11.1, 11.2, etc. The other menu items without subitems don't have subsequent items with suborders. the ordering is just 1,2,3,4,5,etc.

In creating your new menu items I think all you have to do is apply the appropriate ordering numbers to get the subitems to display. If you put a debug on the FunctionsMenu _SubclassExecute script you will see how a function menu is generated. Looking at each menu item structure will give you a good idea on how to proceed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top