SystemConstant.SelectById(ID, Query).co_name
Gets and sets the system constant's name.
Applies To
Description
Gets and sets the system constant's name. This value can be set using the SystemConstant object. However, it is probably best that you leave this system constant name as is if you ever use the .SelectByName() method of retrieving your system constants.
Note: Technical Solutions recommends retrieving your system constants in scripting using the .SelectByName() as the co_id values may be different on different instances of the system and this avoids issues with copying and pasting the scripts.
Properties and Methods
None
Available
The .co_name property is available in:
- 15.03.090
- 15.04.059
- 15.05.034
- 16.00.039
- 16.01.011
- 16.02.004
- 16.03.001
- All newer builds
Type
String
Syntax
SystemConstant.SelectById(ID, Query).co_name;
Parameters
None
Example
//--Get the system constant
let loConstant = SystemConstant.SelectByID(5, Query);
//--read the system constant name
let lcName = loConstant.co_name;
Event.Form.MessageBox(`The name of the system constant with an ID of 5 is: '${lcName}'`);
/*
Expected prompt result:
The name of the system constant with an ID of 5 is: 'My_Constant_Name'
*/