Code Entity¶
A code is a common entity that regroups entites having following fields :- a translatable code field
- a translatable description
Typical codes are “Type of...”.
A code has two aspects :- the definition of the code (the code itself)
- the list of values that can be selected in digest
The definition gives the meaning of the code, and says what it’s used for. “Type of screen” is a code, as well as ”Invoice status”.
The code has a type (which obsiously are codes too) :- System :
*user cannot modify the code except for its description
*user cannot add or remove values, neither modify an existing value except its description - System/User :
*user cannot modify the code except for its description
*user can add and remove values or modify existing values - User : user created the code
*user can delete or modify the code
*user can add and remove values or modify existing values
- System : user cannot modify the value, except its description
- User : user can modify the value
Codes marked System or System/User and code values marked System have to exist or digest might not work well. digest directly refers to system codes, and different system values might change the behaviour of screens. For example, some status of the invoice might set it as read-only.
Standard features¶
- Accessible by a code field
- Translatable
Using entities¶
- code : type of message
Examples¶
- SCR_TYP - Type of screen, Type d’écran - System
- SEARCH, RECH - Search, Recherche - System
- INPUT, SAISIE - Input, Saisie - System
- ADR_TIT - Address title, Civilité - System/User
- Mr, M - Mister, Monsieur - User
- Ms, Mme - Miss, Madame - User