OpenWGA 7.7 - TMLScript reference
DesignMethod :
getGlobal(name)
On object | Design |
Usage | Returns a TMLScript global that is available for the current design |
Description |
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:
|
Parameters |
name (String): 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 |
|
Examples |
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"); |