Entity Code » History » Version 2
Blaise Carrupt, 23.07.2014 10:43
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 | 1 | Blaise Carrupt | Accessible by a [[Thesaurus#Code (Field)|code field]] |
31 | 1 | Blaise Carrupt | Translatable |
32 | 1 | Blaise Carrupt | |
33 | 1 | Blaise Carrupt | Using entities : |
34 | 1 | Blaise Carrupt | * [[Entity Code|code]] : type of message |
35 | 1 | Blaise Carrupt | |
36 | 1 | Blaise Carrupt | |
37 | 1 | Blaise Carrupt | Examples : |
38 | 1 | Blaise Carrupt | * SCR_FIELD_MANDATORY - Field '%0' is mandatory, Le champ '%0' est obligatoire - Screen |
39 | 1 | Blaise Carrupt | * NO_ROW_SELECTED - No row has been selected, Aucune ligne n'a été sélectionnée - Screen |