Globals.Compid

Globals.Compid returns the company ID stored in the system database. If you only have a single company setup in your Deacom instance, this will always be 1. But if you have multiple company databases, this will be the ID for each company database.

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

  • 15.03.016
  • All newer builds

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

Type

Int32

Syntax

Globals.Compid;

Parameters

None

Example

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

 

/*

Expected Prompt response:

Globals.Compid: 1

*/