Development > Data and parameters > Development setup > 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

SEEREFERTTO Refer to documentation Implementation

Screen management

Entry screen

Presentation

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.

Close

 

Fields

The following fields are present on this tab :

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.

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)

 

Close

 

Specific Buttons

The following fields are included on the window opened through this button :

Block number 1

  • field OBJET

 

  • field CLES

 

Block number 2

  • From folder (field DOSORG)

Use this field to define the folder from which the record will be copied. The possible syntaxes are described in the Dedicated appendix.

  • All folders (field TOUDOS)

Use this option to copy the record to all the folders defined in the dictionary (ADOSSIER table of the current solution).

  • To folder (field DOSDES)

Use this field to define the folder to which the record will be copied. The possible syntaxes are described in the Dedicated appendix.

Close

This button is used to copy the record definition from or to another folder.

Error messages

In addition to the generic error messages, the following messages can appear during the entry :

xxxxx : Non-defined variable

The global variables which are not system variables must be defined in the global variable dictionary.

xxxxx : Non-existent sub-program

The functions must all be defined in the function dictionary. They are identified here in the form of a processing/sub-program.

This sub-program does not correspond to a function

Only the functions capitalized in the sub-program dictionary can be entered here.

Tables used

SEEREFERTTO Refer to documentation Implementation