Globals.Compname

Globals.Compname returns the company name for the Deacom instance. This will be the same value as is displayed on login when you choose which company to log into in Deacom. It is related to the Globals.Compid.

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 .Compname property is available in:

  • 15.03.016
  • All newer builds

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

Type

String

Syntax

Globals.Compname;

Parameters

None

Example

//--Assumes I am logged into the Deacom 17.02 sandbox company.

Event.Form.YesNo(`Globals.Compname: ${Globals.Compname}`);

 

/*

Expected Prompt response:

Globals.Compname: Sandbox 17.02

*/