Constants dictionary
Classic Function | function code | GESACSC |
---|
A constant code is the description of a constant used as a symbol (for example, the '[V]CST_xxx' code rather than a numeric constant value). This is used in Sage X3 scripts to make to code more readable.
For information about the use of constants, see the Developer Guide Constants document.
When creating or updating a constant, it is necessary to enter the following information:
Header information | Main information | Description | Initialization block | Validation operation |
Header information
This section contains information to identify the constant:
- The constant code used to name the symbol: for a constant called 'ABCD', the symbol used in the script is '[V]CST_ABCD'.
- A label describing the constant.
Main information
This section defines the main characteristics of the constant:
- A category code used for classification purposes.
- The module in which it has been defined. Supervisor constant codes must start with the letter 'A'.
Description
This section contains a documentation text explaining the purpose of this constant.
Initialization
This section describes the data type and the constant value assigned to the constant symbol:
- The data type can only be character string, integer, decimal, or date.
- The value is a constant with the right data type.
Validation
The validation generates a script called 'WMACONSTANT' that is executed at the start of a session. When new constants are added, they will not be effective before the next connection.