OpenWGA 7.0 - TMLScript reference

TMLContext "this"
Method :

setOption(name, value [, scope])

On object TMLContext "this"
Usage Sets a WebTML option
Description This functionality allows the definition of WebTML options from inside TMLScript.
Parameters name (String):
Name of the option.

value (Object):
Value of the option.

scope (String, optional):
Describes the scope of the option, i.e. if it is automatically forwarded to deeper nested WebTML modules. Use "global" (the default) or "local". Option scopes are explained at WebTML attribute scope.
Allowed in script types
  • WebTML pages and normal WebTML actions