Data Types
This function is used to define the data types that can be used in all the dictionaries where the data is defined: screen fields, table fields, report parameters...
A certain number of characteristics(internal type, length, actions...) are attached to a type to be automatically assigned to the fields using this type. It is not however necessary to define all the characteristics of a type. Indeed, the non-defined characteristics at the type level will be requested at the definition of the screen, which makes it possible to define the generic types. ADONIX delivers a certain number of data types containing only the internal type, that is to say the field storage type. These data types cannot be modified. Here is the list:
Type code |
Definition |
A |
Alphanumeric string |
ABB |
Blob |
ACB |
Clob |
C |
Short integer |
D |
Date |
DCB |
Decimal amount |
L |
Long integer |
M |
Local menu |
MM |
Local menu with the possibility to filter the elements |
M or MM corresponding to a local menu where the number is given by the contents of the Menu column in the table or screen dictionary. A local menu is a title table, entered either in the form of a combi box or in the form of radio buttons in the form of a check box (if it is local menu 1, which contains the values Yes/No). In the database only the choice number is stored in the list (0 if the field is not assigned, 1 if the first title in the list is selected and so on).
In the table shown below are displayed the data types corresponding to the supervisor technical elements:
Type code |
Definition |
ABS |
Variable at the bottom of the grid |
AT |
Field indicating the blob type |
AX1 |
Translated text (length 12) |
AX2 |
Translated text (length 20) |
AX3 |
Translated text (length 30) |
W |
Filler |
ABS identifies the screen field at the bottom of the grid. This field is mandatory for all the grid section defined in a screen. If the grid will accept entries, this field will be in entry mode; if the grid is hidden, this field will be in hidden mode.
W identifies a filler. This data type placed in a screen field will leave a space between the previous field and the next field, if theses two fields are on the same line. It is however preferable to use, to this end, the column section in the screen dictionary and to only use the fields with the data type W as a last resort.
AX1, AX2, AX3 identify the translated texts. In fact, this field is not created in the database. Its field name serves to identify the translated text that will be stored in the dedicated table ATEXTRA.
Displayed in the table below is a list of the functional type that are particularly important (this list is not exhaustive):
Type code |
Definition |
MD1 to MD4 |
Formats for the amounts depending on the currency (which must be on-line): the 4 corresponding formats are defined in the currency table. |
MC1 to MC4 |
Formats for the amounts depending on the currency: These are the same types as above, but they are optimised for use in a scrolling grid in which a column is entered with a currency that does not depend on the current line. |
MS1 to MS4 |
Amounts in the site currency |
ADI |
Code stored in a miscellaneous table (where the number is given in the table dictionary, by the link expression). |
HM |
Hour: minute |
QTY |
Quantity |
QT1 to QT5 |
Prerequisite
Refer to documentation Implementation
Screen management
Header
Type code (field CODTYP) |
Description (field ZINTITTYP) |
Tab General
Characteristics
Activity code (field CODACT) |
The validation of the ADONIX folder does not update the data types where the activity code begins with X Y or Z. |
Module (field MODULE) |
Module belonging to the setup. This field is used to specify whether the screen has to be created in the folder database or not. It is specified when the module linked to the screen is active in the folder. |
Type
Internal type (field TYPTYP) | ||||||||||||||||||
Used to indicate the internal type of the data type. The possible types are:
For the blobs as with the clobs, it is necessary to enter the length that will be maximum storage length. The coding is as follows:
Floating and Double are the types that will not be recommended for use (formats linked to the machine). |
||||||||||||||||||
|
||||||||||||||||||
Used to indicate if necessary, the length of the character strings or the numbers. If this is 0 the length will be entered for each variable of this type. |
||||||||||||||||||
|
||||||||||||||||||
Local menu number. If this is 0 it will be entered for each variable of this type. |
Format
Adonix format (field FORTYP) |
Used to indicate the "adonix" format of the data type. This format must be coherent with the internal type. The format must conform to the Adonix syntax. Only the part situated to the right of the ":" should figure in this field. Ex: 10X , 3A2B. The detail of existing syntaxes is given in the corresponding documentation. For a variable format, it should be preceded by "=". Ex: =[F:DEV]FM92 A good example of this type of variable format can be viewed with the MD1 to MD4 types. These formats are used for the amounts expressed in a currency. For MD1, the format =GDEVFMT. This global variable is loaded in the INIDEV action declared in this same data type. |
Options (field OPTION) |
These options are realized by characters that can be concatenated when several options are required. It is possible to choose these options thanks to a selection window. A detailed description for all the possible options is available. |
Tab Convergence
Object
Linked object (field OBJLIEN) |
Used to indicate if necessary, the object associated with the data type. The linked table managed by the object is displayed. The presence of an object code automatically starts:
|
Linked table (field FICLIEN) |
Format
Grid format (field OPTTAB) |
Used to optimize the display of the large grids. This is reserved for the data type of the standard, because it requires a particular process in the supervisor.
|
Parameter (field PARTAB) |
field W1 |
Variable (field VARTAB) |
Used to optimize the display of the large grids. This is reserved for the data type of the standard, because it requires a particular process in the supervisor.
|
Default value (field VALDEF) |
This field allows you to enter a calculation formula to assign a default value to fields of this type An example can be seen in the CRY type, which defines the country code : the GPAYS variable, which defines the local country, is proposed as the default value for all the fields of this type. This default value is automatically proposed in the screen fields using this type of data. However, if a field using this data type has its own default value in the screen, it's this that will be used; in this case, the default value for the data type is ignored. |
Grid Actions
Type (field ACTTYP) |
This grid is used to declare the actions catalogued in the actions dictionary. The objective is that for all fields having this data type, the actions defined here will be systematically executed. If a single action is defined is defined for both the data type and the screen field, the actions will be executed consecutively and in the following order : it is the data type then the field. There is a particular case for the "selection" and "button" actions, for which only the screen field action will be executed. This grid makes it possible to define the particular actions associated with the field. The possible action types are :
|
Code (field ACTION) |
Indicate the actions to be carried out in a systematic manner on the type of data. |
Execution (field EXEACT) |
This field is used to define the context of the action execution :
|
Tab Class
Type
Type (field TYPSELSYR) |
Details
Content type (field TYPPROSYR) |
Description (field PROTYP) |
Supervisor mgmt (field SUPFLG) |
Special format (field FMTPROSYR) |
Class (field CODCLA) |
Default representations
field DEFREPDES |
field DEFREPMOB |
field DEFREPTAB |
Grid Rules
Type (field TYPRUL) |
Script (field TRTRUL) |
Sub-program (field PRGRUL) |
Sequence (field ORDRUL) |
Activity code (field ACTRUL) |
Active (field ENARUL) |
Grid Parameters
Code (field PARCOD) |
Description (field ZPARTIT) |
Key (field PARCLE) |
Type (field PARTYP) |
Class (field PARCLA) |
Dim. (field PARDIM) |
Method (field PARMOD) |
Reference control addition |
Update parameters |
Reports
By default, the following reports are associated with this function :
ATYPE : Data type
This can be changed using a different setup.
Specific Buttons
Copy
This button is used to copy the data type definition to another folder. Block number 1
Block number 2
|