9.1.6 Automatic Embedding of Web Components

LANSA Web components are used in conjunction with the <RDML COMPONENT> tag. This tag instructs LANSA to process the Web component indicated by the tag.

When a LANSA Web function is compiled, LANSA will check each field used in the REQUEST or DISPLAY and it will automatically substitute a Web component for the field, if a component exists. The Web component must also be defined with the correct mode.

For example, the Web function displaying the DEPTMENT field in a REQUEST statement would normally contain the following LANSA generated HTML tag:

<RDML MERGE="DEPTMENT  ">

The MERGE simply inserts the field. However, once an input mode Web component named DEPTMENT is created for the DEPTMENT field, the LANSA generated HTML will automatically contain the following tag when the function is recompiled:

<RDML COMPONENT="DEPTMENT " MODE="I">

LANSA will embed the proper mode for the Web component. If there were no input mode DEPTMENT Web component, then a MERGE tag would be used.

You must recompile your Web functions if you want LANSA to automatically embed the Web components into the HTML pages. If you create Web components after you have compiled your functions, you must recompile the functions to embed the Web components, or you may manually edit the HTML to include the <RDML COMPONENT> tags if you do not wish to recompile your functions.

You can include *HIDDEN fields in your displays to add Web components to your Web functions. All *HIDDEN fields are considered output mode components.

You may also manually embed Web components by adding <RDML COMPONENT> tags to your HTML pages.

For more details, refer to <RDML COMPONENT>.

 

WEB008 - Web Components