Format definition

An Adonix format presents itself in the following way :

Type  SubType   Option  {attr1,attr2, , attr11}  : Formatting characters

Only the type and the format characters are mandatory.

Example of formats

Below several format examples are displayed as a function of the field type.

Field type

Format

Meaning

A

K:3X8A3#

Any 3 characters, 8 Uppercase letters and 3 numbers

A

K{-1,-1,-1,32}:200X

Alphanumeric field of 200 characters, entered over 4 lines .
the last attribute is expressed in 8th of a line.

DCB

NZ:6.2

Integer section made up of 6 numbers, decimal section of 2 numbers
Display of zero at the end of the decimal section.

DCB

NZ:6.2 [euros]

identical.
Display of the text "euros" at the end of the field.

DCB

NPZ:6.2

Identical.
field in display only.

D

D:DDMMYY

Date in the form: DDMMYY

D

D:DD[/]MM[/]YY

Date in the form: DD/MM/YY

D

D:DD[/]MM[/]YY

Identical.
Blank date authorised  

The types

The type defines the nature of the field. It is mandatory to enter it.

Type

Meaning

K

Character string

N

Number

D

Date

The sub--types

The sub-types can be applied to any field type :

Sub-type

Meaning

W

Contents of the field displayed at the bottom of the screen
(corresponding in the supervisor to the entry option : W )

The sub-types applicable to the K type fields :

Sub-type

Meaning

H

Field containing a file of the type RTF
*.rtf and *txt file saved to one of the sub-directories of the current application on the server. The screen class variable contains the absolute name : it contains the indication of the directory and the file name.

R

Field containing a file of the type RTF
*.rtf and *txt file saved to the TXT sub-directory in the current application on the server. The screen class variable contains the name of the text file. This name is relative without the extension

@

Field containing a L4G file

U

Field containing an executable line

I :

Image field. The sub-type is completed by a number to specify the display mode for the image :
1.Normal display
2. Resizing of the image with respect to the framework defined
3. Resizing of the image keeping the height and width proportions.

(corresponding in the supervisor to the graphical object : photo )

The options

The display/control options for each field type :

Option

Meaning

Displayed field

X

Masked entry

C

Mandatory complete entry

z

No display (not the same for comments) when the value to be displayed is null.

The attributes

The formatting characters

Please view the documentation concerning the formatting characters.