Entity Code » History » Version 7

Blaise Carrupt, 24.07.2014 08:40

1 1 Blaise Carrupt
h1. Code Entity
2 1 Blaise Carrupt
3 1 Blaise Carrupt
A code is a common [[Thesaurus#Entity|entity]] that regroups [[Thesaurus#Entity|entites]] having following fields :
4 1 Blaise Carrupt
* a translatable [[Thesaurus#Code (Field)|code field]]
5 1 Blaise Carrupt
* a translatable description
6 1 Blaise Carrupt
7 1 Blaise Carrupt
Typical codes are "Type of...".
8 1 Blaise Carrupt
9 1 Blaise Carrupt
A code has two aspects :
10 1 Blaise Carrupt
* the definition of the code (the code itself)
11 1 Blaise Carrupt
* the list of values that can be selected in digest
12 1 Blaise Carrupt
13 2 Blaise Carrupt
The definition gives the meaning of the code, and says what it's used for. "Type of [[Thesaurus#Screen|screen]]" is a code, as well as "[[Entity Invoice|Invoice]] status".
14 1 Blaise Carrupt
15 1 Blaise Carrupt
The code has a type (which obsiously are codes too) : 
16 1 Blaise Carrupt
* System :
17 1 Blaise Carrupt
**user cannot modify the code except for its description
18 1 Blaise Carrupt
**user cannot add or remove values, neither modify an existing value except its description
19 1 Blaise Carrupt
* System/User : 
20 1 Blaise Carrupt
**user cannot modify the code except for its description
21 1 Blaise Carrupt
**user can add and remove values or modify existing values
22 1 Blaise Carrupt
* User : user created the code
23 1 Blaise Carrupt
**user can delete or modify the code
24 1 Blaise Carrupt
**user can add and remove values or modify existing values
25 1 Blaise Carrupt
26 1 Blaise Carrupt
Each value also has a type :
27 1 Blaise Carrupt
* System : user cannot modify the value, except its description
28 1 Blaise Carrupt
* User : user can modify the value
29 1 Blaise Carrupt
30 4 Blaise Carrupt
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 [[Entity Invoice|invoice]] might set it as [[Thesaurus#Read-only|read-only]].
31 3 Blaise Carrupt
32 3 Blaise Carrupt
33 7 Blaise Carrupt
h2. Standard features
34 7 Blaise Carrupt
35 1 Blaise Carrupt
Accessible by a [[Thesaurus#Code (Field)|code field]]
36 1 Blaise Carrupt
Translatable
37 1 Blaise Carrupt
38 7 Blaise Carrupt
h2. Using entities
39 7 Blaise Carrupt
40 1 Blaise Carrupt
* [[Entity Code|code]] : type of message
41 1 Blaise Carrupt
42 1 Blaise Carrupt
43 6 Blaise Carrupt
h2. Examples :
44 6 Blaise Carrupt
45 3 Blaise Carrupt
* SCR_TYP - Type of screen, Type d'écran - System
46 3 Blaise Carrupt
** SEARCH, RECH - Search, Recherche - System
47 3 Blaise Carrupt
** INPUT, SAISIE - Input, Saisie - System
48 3 Blaise Carrupt
* ADR_TIT - Address title, Civilité - System/User
49 3 Blaise Carrupt
** Mr, M - Mister, Monsieur - User
50 5 Blaise Carrupt
** Ms, Mme - Miss, Madame - User
Add picture from clipboard (Maximum size: 32 MB)