OpenWGA 7.7 - TMLScript reference

TMLContext "this"
Property :

document

On object TMLContext "this"
Usage Returns the WGAPI document object in context
Description This is a variant of this.content() that returns the context document as a property.

It is theoretically able to return context documents that are no content documents, which however is only used in authoring applications.
Writable False
Return value A document object (A subclass of WGAPI object WGDocument)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events