OpenWGA 7.7 - TMLScript reference

TMLContext "this"
Method :

isdefined(name)

On object TMLContext "this"
Usage Tests if a name is defined as WebTML variable or item on the context document
Description This method tests for all variants of WebTML variables, including portlet and session variables, that are available at the code position. It also tests the items of the current context document. If it finds any variable or item with the given name it returns true, else false.

It does not test for simple JavaScript variables.
Parameters name (String):
Name of the variable/item to test for existence
Return value (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events