Products Downloads


French version


 

Level 2 generation in SQL access mode


Note: When the logical entity has a default logical server, the instructions directly related to the entity will be assigned automatically to the logical server, except in the SFTKYS_PROCESS sections.

In the example below, <S1> is the default logical server of ENTITY1, and <S2> is the default logical server of ENTITY2.

Only the lines in purple refer to the instructions generated by level 2 generation.


Typical structure


* For the window


BEGIN_STD_DFL


BEGIN_STD

<S1>

< generation of the CT-class management rules for I/O,

<S1>

non-list fields >

<S1>

PREPARE_MSG 0001 ZPROP_X1

<S1>

IF    ZPROP_X1 <> 0

<S1>

ERROR

<S1>

END

<S1>

< generation of the CA-class management rules, for

<S1>

non-list fields >

<S1>

ZPROP_X1 = ZPROP_X2 * ZPROP_X3


END_STD


END_STD_DFL




* For a list


BEGIN_STD_DFL


READ_LST <window.object:list_prop> *MODIF


BEGIN_STD

<S2>

< generation of the CT-class management rules for

<S2>

the I/O fields of the list >

<S2>

PREPARE_MSG 0001 ZPROP_Y1

<S2>

IF  ZPROP_Y1 <> 0

<S2>

ERROR

<S2>

END

<S2>

< generation of the CA-class management rules for the list fields >

<S2>

ZPROP_Y1 = ZPROP_Y2 * ZPROP_Y3


END_STD


CHANGE_ELT <window.object:list_prop>


END_READ_LST


END_STD_DFL


Note: As regards CT and CA-classes management rules, the $PROP (properties) on the screen will be replaced by the screen field guide words; otherwise, they will be replaced by the file field guide words.


Important: When referring to "screen field guide words" with VADELIA programs, it corresponds to the value property of the graphical object (the "screen field") or, if the graphical object has one, to the name of its associated variable.

With WADELIA programs, this is the graphical object's name.



Click below for further information about:


↑ Top of page

  • Aucune étiquette