Globals.Controls
Globals.Controls returns the Controls path string from the deacom.ini file. The Globals.Controls property is set at time of login, and can only be updated when the web server console or web server service is restarted.
Note: Globals are not available to Grid and External scripts until 17.02. Please check the scripting tree in the script window in Deacom to make sure Globals are available.
Applies To
Properties and Methods
None
Available
The .Controls property is available in:
- 15.03.016
- All newer builds
Note: The .Controls property and all sub-classes, properties, and methods are only available in Form Layout scripts.
Type
String
Syntax
Globals.Controls;
Parameters
None
Example
//--add this script to any event
Event.Base(); Event.Form.YesNo(`Globals.Controls: ${Globals.Controls}`);
/* Expected Prompt response:
Deacom will display the Controls path from your .ini file
Globals.Controls: C:\Deacom\Production\Controls
/