OpenWGA 7.11 - TMLScript reference

TMLContext "this"
Method :

option(name [, defaultValue])

On object TMLContext "this"
Usage Retrieves the value of a WebTML option
Description This is the TMLScript pendant of WebTML tag <tml:option> in "get"-mode. It retrieves the WebTML options that are available on the current WebTML tag context.
Parameters name (String):
Name of the option

defaultValue (Object):
A value that should be returned if the retrieved option does not exist. If this is omitted the method returns null on nonexistent options.
Return value Value of the option
Allowed in script types
  • WebTML pages and normal WebTML actions