7.2 How Do LANSA Tags Work?

Many LANSA tags are automatically embedded into the generated HTML for a Web function. For example, the inclusion of the standard header and footer components are achieved using LANSA tags. Input fields on the Web page and Message boxes are controlled by a LANSA tag. These tags are an important part of LANSA generated HTML.

A Web developer may choose to enhance the generated HTML using the Web Function Editor. The developer can modify the HTML to include more LANSA tags. For example, the developer might add a Web component to display a drop down box for an input field.

When the client or browser requests the LANSA Web function, the LANSA tags are decoded as the HTML is dynamically generated. LANSA will follow the instructions defined by the LANSA tags when creating the final HTML page. For example, the following LANSA tags:

Employee Number is <RDML MERGE="EMPNO">.

<br />

<RDML ONCONDITON="EMPNO">

The Employee number is not blank.

</RDML>

<RDML NOTCONDITON="EMPNO">

The Employee number is blank.

</RDML>

will tell LANSA to insert the required value for the #EMPNO field and will determine the appropriate text to display. If the EMPNO field has a value of A0001, then the final HTML sent to the browser will appear as follows:

Employee Number is A0001.

The Employee Number is not blank.

If the EMPNO field is blank, then the final HTML sent to the browser will appear as follows:

Employee Number is .

The Employee Number is blank

Notice that when the document is served to the browser or computing device, it contains no LANSA RDML tags. It is just HTML.

 

WEB007 - LANSA Tags