5 8 2 How Do I Use the HTML Skeleton

LANSA Web Functions

5.8.2 How Do I Use the HTML Skeleton?

If you identify a standard change which needs to be made to the structure of all of your Web functions in a process or in a partition, then you have identified an opportunity to use an HTML skeleton to make this structural change. Creating your own HTML skeleton allows you to control some parts of the default structure of the HTML generated by LANSA Web functions. For example, if you do not want to use a STDFOOTER in your Web functions, it can be removed from the skeleton.

For example, the current HTML skeleton uses the same background for all of your LANSA Web functions. The graphic variable *LW3CLNTBKGND is used to control the client background. If you want to create a specific background for your applications in a partition or in a process or in a specific function without manually editing the HTML each time, you can create a new skeleton.

To create a client background which is partition specific, you need to do the following:

1.  Create a new text Web component called MYBACKGND which will be used to store the specification for the client background you wish to use. Remember that the Web component is stored at the partition level.

2.  Edit the HTML skeleton and replace the line:

         <body bgcolor="<RDML MERGE="*LW3CLNTCOLOR">"

         background="<RDML MERGE="*LW3CLNTBKGND">" <RDML COMPONENT="FORMINIT">>

   with:

         <body bgcolor="<RDML MERGE="*LW3CLNTCOLOR">"

         background="<RDML COMPONENT="MYBACKGND">" <RDML COMPONENT="FORMINIT">>

3.  Save the customized HTML skeleton using the Partition Name.

 

When your Web function HTML is generated in the specific partition, it will now use your new Web component to define the client background.

Once changes are made to the skeleton, you must recompile your Web functions and regenerate the HTML for the changes to take effect.