3.6.2 Layout Pages
When you Build or Adopt a layout, the Web Functions Wizard creates (or modifies) a process specific HTML page:
<process name>_LAYOUT
where <process name> is the name of your current LANSA process (this will be DEFAULT for the system default component). Using the Delete Layout button will delete this component.
The <process name>_LAYOUT page contains the details of the presentation. You can view the layout page using the Web Function Editor. The layout page is a partition specific Web component.
In the HTML generated for your LANSA function, there is an <RDML LAYOUT> tag. When you execute the LANSA function, this tag instructs LANSA for the Web to use a presentation layout. LANSA for the Web will attempt to locate a process specific layout page (<process name>_LAYOUT). If this page is not found, the DEFAULT_LAYOUT page is used.
LAYOUT pages generated by the Wizard incorporate the graphic variables used to store the Color Scheme. Another graphic variable is used to store the Layout Features (*LW3PLIN_<process name>) and is interpreted when the LAYOUT page is generated to ensure the appropriate details are included or excluded in the generated HTML page. Changes to the Color Scheme are automatically applied as they are interpreted at run time but changes to the Layout Features require a re-build of the Layout to modify the generated HTML.
To remove a process specific layout component so the DEFAULT_LAYOUT will be used, select the Delete Layout button from Select Layout or manually delete the <process name>_LAYOUT component using the Web Function Editor. The graphic variables associated with the Color Scheme can be deleted separately using the Delete button from Color Scheme.
The function is embedded in the presentation layout by the <RDML FUNCTION> tag. The location of this tag determines where the generated HTML for your LANSA function is processed.