OpenWGA 7.10 - TMLScript referenceDesign
|Usage||Returns a TMLScript global that is available for the current design|
This method allows to retrieve TMLScript globals with their name as method parameter. It can retrieve normal globals just like globals of design scope.
Normally you access TMLScript globals just by specifying their name in TMLScript code, without using any method. However there are some situations where you will need to use this method instead. For example:
The name of the global
|Return value||The TMLScript global that is available to the current design under the given name or null if there is none|
|Allowed in script types||
Retrieving a TMLScript global "Tools" from the design of app "intranet", which may not be visible to my current code as it is a "db global".
var tools = WGA.design("intranet").getGlobal("Tools");