OpenWGA 7.7 - TMLScript reference
DesignMethod :
db()
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. |
Parameters |
|
Return value | The database object (WGAPI-Objekt WGDatabase) |
Allowed in script types |
|
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() { |