Formula Wizard setup
The Safe X3 softwares are used to define, in a certain number of setup functions, assessed formulae to define either a selection criterion or the content of a field. In order to facilitate the task of the persons in charge of the setup, a formulae editor can then be used.
This function is used to define the headings that can be accessed in the quick select list of the formula editor. These headings, identified by a name and a title, can be of several types:
- global variable (usually, its code starts with a G, it can be prefixed by [V] in the formulae). It must necessarily be previously defined in the dictionary of global variables.
- local variable (it can be prefixed by [L] in the formulae).
- user function (used in the form of Func PROCESSING.NAME, where PROCESSING is the name of a processing, and NAME is the name of the function). The function must be previously defined in the sub-program dictionary.
It must be noted that it is possible to define a list of headings that can be used whatever the context and/or a list for for a given functional context.
The specific processing can add elements allocating them a code starting with X, Y or Z. The local variables are systematically protected. The global variables and functions are protected by activity code respectively placed on the variable dictionary or on the sub-program dictionary.
Prerequisites
Refer to documentation Implementation
Screen management
Entry screen
The single screen is used to indentify the context and the type of header heading. Then the list of headings to display in the formula assistant are entered in a grid.
Block number 1
Type (field TYP) |
This type, identified by local menu 2945, identifies the category for the elements that can be selected from the left list in the formula assistant. These elements are found in the form of a tree structure. The root lines of the tree structure can correspond to one of the categories defined here or with the labels for the tables or the screens on-line. |
Function (field FCT) |
Defines the code for the function where the context must be described. This code is mandatory for the local variables. |
Grid List of values
field COD |
Defines the code for the section accessible in the formula editor. This section can be the name of a variable, or a code for a function in the form TRAITEMENT/FONCTION (process/function). |
Description (field ZINTIT) |
Specific Buttons
Copy
This button is used to copy the record definition from or to another folder. Block number 1
Block number 2
|