6.3 Other Default Pages

LANSA Web functions also allow you to create other default pages. These are the pages that are not shipped with the product. You can create these pages manually (using the Web Function Editor) to define the default attributes of your Web function application.

Page Name

Description

DEFAULT_HEADER

This contains header information that is typically encapsulated by the <head> and </head> tags.

If you want to use a specific header for a particular LANSA Web function, refer to the <RDML LAYOUT> LANSA tag.

 

DEFAULT_HMENU

This contains the menu items for the Horizontal Menu component. Typically, you should use the e-Business Framework Wizard to create this page.

 

DEFAULT_LMENU

This contains the menu items for the Left Menu component. Typically, you should use the e-Business Framework Wizard to create this page.

 

DEFAULT_MSGPRES

Default presentation of LANSA messages in your Web function application. By default, the LANSA messages are presented in a list box.

You can override the format of the message presentation by using this page and defining your own message presentation layout. If this page exists, it is used to present the LANSA messages in your Web function application.

An example of a DEFAULT_MSGPRES is shown below. It replaces the list box format with a list of messages.

<table border="0" width="100%">

<tr bgcolor="lightcyan">

<td><img src="<RDML MERGE="*LW3IMGMESSAGES">" border="0"></td>

<td><ul>

    <li><b><RDML MESSAGES></b>

    </ul>

</td>

</tr>

</table>

LANSA Web functions use a LANSA tag, <RDML MESSAGES> to determine the position in the page to display the LANSA messages. The line in the page containing the tag will be repeated for each LANSA message in your  Web function application.

In your message presentation page, you can embed other LANSA tags. The only restriction is that the line containing the <RDML MESSAGES> tag must not contain any other LANSA tags.

Refer to Message Presentation Layout.

Refer to tutorial WEB005 - LANSA Process Pages.

 

DEFAULT_RMENU

This contains the menu items for the Right Menu component. Typically, you should use the e-Business Framework Wizard to create this page.

 

DEFAULT_STYLE

Default customized styles for your Web function application. This page contains the cascading style sheets (CSS) definitions for your applications.

By default, your application adopts the presentation styles configured for the browser. If you want to override any of the styles, you can achieve this by creating this default page.

An example of DEFAULT_STYLE is shown below. It overrides the styles used for the <table> and <h1> tags.

<style>

  table    {font-family: <RDML COMPONENT="FONTPREF">

            font-size: 10pt;

            font-weight: normal}

  h1       {font-family: <RDML COMPONENT="HEADER1FONT">

            font-size: 12pt;

            font-weight: bold}

</style>

For more details, refer to Cascading Style Sheets.

 

 

 

For more default pages, refer to 6.2 Shipped Default Pages.

If you modify these pages, you must remember to export them if you move your application to another partition or system. In order to select these pages for export, you must register these pages as Web components. Refer to the Deployment Tool Guide for information about Web Application Deployment.