This function is used to define:

 The line sequences common to several scenarios (for modification at a single place).

 The questions and variables associated with a selection window in automatic mode.

 A procedure for choosing the scenario to be used (Max 18 questions).

Prerequisite

SEEREFERTTO Refer to documentation Implementation

Screen management

Entry screen

Header entry

Procedure : Enter a procedure number using a maximum number of 5 characters and a title of up to a maximum of 30 characters.

For selections : The procedure can be used in the selections in automatic mode and in scenarios with a limited number of actions.

For scenario : The procedure is only usable in scenarios.

Master scenario : It is possible to plan an initial mini-scenario that is used to choose the scenario to be executed. For this it is necessary to create a procedure of the type "master scenario" and to associate this procedure with a general setup CFGINI. This procedure raises questions and loads the SCESEL system variable with the code of the scenario to be run. A single procedure defines all the master scenarios in the system.

Notes

The execution of this mini-scenario is not dynamic :

  The questions or "shapes and patterns" are asked first.

  The scenario lines of the "variable", "entry point", "table links" or "message" type are then executed in order of their entry.

Entry mode : Two possible choices:

 Standard (when it is a procedure for the selections or for the scenarios).

 Assisted: automatic opening of the selection windows (when this is a procedure defined as a master scenario).

Line entry

This entry is identical for the procedures and the scenario lines (all phases)

Entry notes

In the normal way, within a single grid containing the procedure or scenario lines, it is possible to copy/cut/paste a setup line or group of lines by the button on a line.

When creating or inserting a new line, it is possible to use the right button to copy the previous line.

In the Condition column, using the right button, it is possible to copy the condition from the previous line, or to automatically set up the opposite condition on the previous line without re-entry.

In the Expression column, using the right button, it is possible to automatically copy the expression entered on the previous line.

In the Symbol columns, using the right button, it is possible to access the dictionary in display mode that then gives the characteristics of the symbol entered.

Set a question

Example 1: Set the question COLOUR

Example 2: Set the DIAMETER question if the response to the FORM question = "R" (FORM can also be a variable calculated by the scenario)

  

Example 1:

Example 2:

Action

Question

Question

Symbol

COLOUR

DIAMETER

Condition

 

S_FORM = "R"

Expression

 

 

Note

With the "advanced functions" setup, if an expression is entered: the question is initialized with the before-entry expression.

 

Calculate a variable

Example 1: Calculate the variable SURFACE with an expression (LENGTH and WIDTH = Questions or variables )

Example 2:Calculate the variable SPEED with the VITBIS calculation table as a function of the value of the symbol LARBIS if the Boolean BISEAU is "true" (tick box or value = 1)

  

Example 1:

Example 2:

Action

Variable

Variable

Symbol

SURFACE

SPEED

Condition

 

S_BISEAU

Expression

S_LENG*S_WIDTH

 

Calculation table

 

VITBIS

Index

 

LARBIS

 

Product selection

Example 1:Open the accessories selection window "ACC" if the ACCESS variable is true and authorize the selection of 1 to n lines.

Example 2: Open the accessories selection window "ACC", always for display only

 

Example 1:

Example 2:

Action

Selection

Selection

Symbol

ACC

ACC

Parameter

Select. 1 to n lines

No selection

Condition

S_ACCESS

 

 

Selection of options / variants

For example:Open the Variant options selection window "OPT" if the OPTIONS variable is true and authorized the selection of 1 to n lines.

 

Example

 

Action

Options/variants

 

Parameter

Select. 1 to n lines

 

Symbol

OPT

 

Condition

S_OPTIONS

 

 

Establish a link with an X3 table (advance function)

For example: Read the record in the units table (TABUNIT) corresponding to the unit contained in the UOM variable if this variable is not empty.

 

Example

 

Action

Table link

 

Symbol

TABUNIT

 

Condition

S_UOM <> ""

 

Expression

[F:LNK]UOM = S_UOM

 

Comments:

The record in the table is available under the abbreviation [LNK].

The establishment of a link makes the previous link inaccessible (data backup necessary).

 

Execution of a procedure

For example: Execute the "RTZ" procedure if the variable INT is true

  

Example

 

Action

Procedure

 

Symbol

RTZ

 

Condition

S_INIT

 

Comments:

All the procedure lines are affected by the condition expressed at this level (S_INT here).

In addition, each procedure line is affected by its own condition.