2 5 Variables

LANSA WAM

2.5 Variables

The variables weblet – std_variables – is not visualized.

The sole purpose of the std_variables weblet is to define a set of variables with default values. These default values can in turn be referenced in appropriate weblet properties or used in other weblet's XSL source. For variables defined in std_variables to be referenced by other weblets, the referencing weblet must include a specific import of the std_variables.xsl document.

For example, the std_menu_item weblet includes the following statement in the XSL source:

Further down in the XSL is a reference to a variable $lweb_WAMName (defined in std_variables) to resolve the name of the currently executing WAM at runtime.