Context global variables
Context codes replace the old global variables defined in the V6 version dedicated function (GESAGB). In Versions 7 and above, the new function defining the context codes is the context dictionary (function GESACTX).
1. Definition
Global context variables are defined in chapters (a few of them are defined directly without a chapter). The chapter code for all the supervisor parameters starts with the letter 'A'. The dictionary includes initialization values (through formulas or with an initial script). The initialization is done at the first use of the parameter value (GET accessors are defined on these type of classes).
2. Use
If a chapter is associated with a context code, the chapter is a child class. If no chapter is associated with a context code, the access is direct.
For example:
ALANGDEF
defines the default language for the folder associated with the context. It is located in theAFOLD
chapter and is therefore accessible throughthis.ACTX.AFOLD.ALANGDEF
path.LAN
is the current language of the session and has no chapter. It is accessible directly withthis.ACTX.LAN
path.this.ACTX.USER
returns the current user code (instead ofGUSER
).