OpenWGA 7.11 - TMLScript reference

Method :


On object Design
Usage Returns the WGAPI database object for the application of the current design
Description For backward compatibility there still is an equally working global function "localDB()" available whose use is discouraged since OpenWGA 5.3.
Return value The database object (WGAPI-Objekt WGDatabase)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Examples This example contains a minimal custom TMLScript object which on instantiation logs the key of the application that contains its definition. Note that the design context used is constructed with the  TMLScript object as reference parameter.

this.init = function() {"The code of this object is defined in app: " +;