Generation of level 2 in native access mode
These instructions correspond to access instructions to the database (file reading), and to load or reset instructions for the data in the windows. The generation procedure for these instructions is made by the analysis of the data flow and of the logical origins of the graphical objects in the window.
These instructions handle as well the possible load of the graphical lists.
Note: When the logical entity has a default logical server, the instructions related to the entity will automatically be assigned to the logical server.
In the example below, <S1> is the default logical server of ENTITY1, and <S2 > is the default logical server of ENTITY2.
Typical structure
******************* INITIALIZATION *******************
* For the window BEGIN_STD <S1> CHAIN VIEW_A <S1> < generation of the IE-class management rules for the entity corresponding <S1> to the VIEW_A > <S1> PRESENT VIEW_A < generation of instruction to reset to blank or zero for the non-list fields that are not linked with the data-flow > VAR_X1 = *BLANK VAR_X2 = 0 <S1> < generation of the IP-class management rules for the non-list fields > <S1> < generation of the CA-class management rules for the non-list fields > <S1> ZPROP_X1 = PROP_X2 * PROP_X3 END_STD
* For a list CLEAR_LST <window.object:list_prop> <S2> LOADING_LST LDG_ENTITY2 <S2> BEGIN_STD <S2> < generation of the IE-class management rules for ENTITY2 > <S2> PRESENT ENTITY2 <S2> < generation of the instructions to reset to blank or zero for <S2> the fields that are not linked with the list data flow > <S2> VAR_Y1 = *BLANK <S2> VAR_Y2 = 0 <S2> < generation of the IP-class management rules for the list fields > <S2> < generation of the CA-class management rules for the list fields > <S2> ZPROP_Y1 = PROP_Y2 * PROP_Y3 <S2> END_STD <S2> INSERT_ELT <window.object:list_prop> <S2> END_LOADING_LST |
Note:
As regards IE, IP and CA-classes management rules, the $PROP (properties) will be replaced by file field guide words.
As regards the initialization of variables, the following rules apply:
Blank or zero initialization:
Input/Output fields not used by the data flow and not keys of a view or a load.
Click below for further information about: