OpenWGA 7.7 - TMLScript reference

WGA
Object:

WGA.TMLScript

Description

This object allows custom TMLScript expression and script execution.

Retrieval Global object WGA.TMLScript
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Properties and methods

This object differentiates between expressions which just return the evaluated value and scripts which need a return statement to return a value.

Name Purpose
callMethod(object, method) Calls a method without parameters or retrieves a property from a TMLScript object
runExpression([context,]expression) Evaluates TMLScript expression
runScript([context,]code) Runs a TMLScript