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 | Optimised quantity for the grid section (same notes as above: the format of a column must not depend on the current line) |
Refer to documentation Implementation
Fields
The following fields are present on this tab :
|
  |
|
  |
Close
Fields
The following fields are present on this tab :
Characteristics
|
The validation of the ADONIX folder does not update the data types where the activity code begins with X Y or Z. |
|
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
|
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:
|
|
|
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
|
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. |
|
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. |
Close
Fields
The following fields are included in this window :
Object
|
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:
|
|
  |
Format
|
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.
|
|
  |
|
  |
|
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.
|
|
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
|
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 :
|
|
Indicate the actions to be carried out in a systematic manner on the type of data. |
|
This field is used to define the context of the action execution :
|
Close
Fields
The following fields are included in this window :
Type
|
  |
Details
|
  |
|
  |
|
  |
|
  |
|
  |
Default representations
  |
  |
  |
Grid Rules
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
Grid Parameters
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
|
  |
Close
Action icon
By default, the following reports are associated with this function :
ATYPE : Data type
This can be changed using a different setup.
|
The following fields are included on the window opened through this button : Block number 1
Block number 2
Close This button is used to copy the data type definition to another folder. |
This function is used to access the documentation management on the first paragraph of the documentation (if there is one) associated to the current record.
This function is used to access the link management. It is used to define the links between the current record and other records (for instance the links between functions and parameters). These links are specific to the documentation and are used to load the generation of documentation structures.
This menu is used to launch a documentation generation. The generation can also be launched from the [Generation] button at the bottom of the window.
Three types of generation can be launched one by one or simultaneously:
The range suggested by default takes into account the current record but it can be modified upon launch.
In addition to the generic error messages, the following messages can appear during the entry :
The length associated with a field is incompatible with the given internal data type.
The local menu number is incorrect
Incorrect characters have been entered in the format.
The format that has been defined is invalid.
The option associated with the format is invalid.
The database data types are not modifiable. Example : "A","C","D","L","M","MM","DCB","AV","W","ACB","ABB".