You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

[ |../../index.htm#lansa/wamb8_menubar_usingalist.htm]
You are here:

Using a List to Define the Menu

The menu structure can be defined with an RDMLX list (normal list or JSON list). To do this you must create a list with a specific format. The list must have 6 columns containing the following values:
1.  Menu item ID - A unique id for the menu item. This can be a number or a string. If using numbers, do not use zero (items with an id of zero cannot have child items).
2.  Parent item ID - The id of the parent item. Use zero (0) or an empty string for top level items with no parent.
3.  Caption - The text to display for the menu item.
4.  URL - The URL that the menu item will navigate to when clicked. You can specify a complete URL or one that is relative to the current page. Use an empty string if the menu item is to invoke a webroutine.
5.  WAM - The name of the WAM containing the Webroutine to be invoked when the menu item is clicked.If the URL is specified, this is ignored.
6.  Webroutine - The name of the Webroutine to be invoked when the menu item is clicked.If the URL is specified, this is ignored.
7.  WAM Event (optional) – The VLF WAM Event to send to the webroutine handling the request.

  • The columns names may be anything you like but they must be defined in the order specified above.

[ |../../index.htm#lansa/wamb8_menubar_usingalist.htm]

  • No labels