Menu Components
When you press the Build Menu button, the e-Business Framework Wizard generates an HTML page for the component. If you do not press the Build Menu button, your menu definition will be saved but any existing menu component will not correspond with the defined menu entries.
When you select the Build Menu button, if you are defining a Left Menu component the e-Business Framework Wizard generates an HTML page named as:
<process name>_LMENU2
where <process name> is the name of the LANSA process.
If it is the Horizontal Menu component, then the page is named <process name>_HMENU2.
This naming convention allows the Wizard to support DHTML menu and standard menu definitions concurrently. You can define both a DHTML menu and a Standard menu for the same menu component. This will allow you to prototype and experiment with DHTML and Standard menus by varying your Layout Features.
The <process name>_LMENU2 component contains the JavaScript definition of your menu. This component in combination with the <process_name>_LMENU and WIZMNUSCR components define a DHTML menu.
When you build a layout presentation, the component <process_name>_LMENU2 and the component WIZMNUSCR (executable JavaScript) are embedded in the layout page just after the body tag. The <process_name>_LMENU component will be embedded in the layout HTML component at the point where the menu will be displayed. This includes a simple table definition to anchor the menu. For more details, refer to Customizing a Presentation Layout – Technically Speaking.
The following HTML code example shows the HTML of a Layout component, which includes a DHTML menu: