OpenWGA 5.0 - WebTML reference

Dynamic WebTML attributes

The contents of all WebTML attributes may be dynamically calculated, i.e. their contents is determined by some functionality in the moment it is used by the tag.  For example, a <tml:item> tag that calculates the item to use by a TMLScript expression:
<tml:item name="{ isDefined('partNr') ? partNr : orderNr }"/>

There are some syntaxes available for dynamic attributes that use different functionalities for calculating the attribute contents:

attribute="{TMLScript expression}"

A TMLScript expression, processed in the document context of the WebTML tag, whose result will be the contents of the attribute. If the result is a List it is joined to a single string with commas as separators.

attribute="[String {TMLScript expression} String]"

An attribute composed from static strings (parts directly inside square brackets) and parts calculated by TMLScript expressions (parts inside curly brackets) that are processed just like using the syntax above. Parts are joined to a single string without any separators. The attribute may contain as many dynamic parts, marked by curly brackets, as needed.


Returns the value of the given item from the context document


Returns the output of the WebTML tag of the given ID


Returns the database key of the plugin of the given unique name or plugin shortcut


Returns the value of the given WebTML option


Returns a WebTML label of the given key in a language accepted by the user