Globals.Addins

Globals.Addins returns the Addins path string from the deacom.ini file. The Globals.Addins property is set at time of login, and can only be updated when the web server console or web server service is restarted.

Deacom does not have a relative path in scripting, everything is absolute. We have found through trial and error that if you put all you external scripts in a js or scripting folder inside the Addins folder the best way to mimic a relative path and allow you to back up and restore production and test without breaking path links in the scripting.

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

Globals

Properties and Methods

None

Available

The .Addins property is available in:

  • 15.03.016
  • All newer builds

Note: The .Addins property and all sub-classes, properties, and methods are only available in Form Layout scripts.

Type

String

Syntax

Globals.Addins;

Parameters

None

Example

//--Add this script to any event

Event.Base();

Script.include(Globals.Addins + 'js\\myscript.js');

 

/* Expected Prompt response:

Deacom will navigate to the location in the path and execute the script file

This file is located in the Addins\js folder. This assumes that Globals.Addins ends with a backslash.

The addins folder path is designated in the deacom.ini file

*/