Context dictionary

Classic FunctionFunction codeGESACTX

A context code is the description of a variable that will be present in the context class. This class identifies the context execution of a version 7 session and includes the definition of the current folder, the current user, and other useful information including general parameter values.

More information about the use of context is available in the Developer Guide Context.

When creating or updating a context code, it is necessary to enter the following information:

HeaderMain informationDescriptionFormatSizing formulaInitialization

Additional information:

ValidationErrors list

Header information

This section contains information that identifies the context code:

Main information

The first section defines the main characteristics of the context code:

Description

The second section contains a documentation text explaining the purpose of this context code. It is usually filled when the Public check box is selected.

Format

The third section defines the characteristics of the property in the context code:

Sizing formula

The fourth section defines a dimension formula used if the code is an array with a dimension. This dimension can be computed through a formula (the value associated with an activity code), while the formula can be a constant.

Initialization

This section describes how this context code is initialized. Except for some special context codes defined by the Supervisor, each context code must specify how it will be initialized using a parameter, a formula, or a piece of code.

Validation

A newly created context code will be taken into account only after a successful context validation. If the validation fails, the last validated version is applied. The validation generates a context class named WMACONTEXT. This context class includes the following:

Error list

The following are error messages that appear when saving a context code:

Please enter a value for the context chapter.
Please provide a parameter, a formula or an initialization processing.
The description must be entered for a published variable.