Entity Code » History » Version 2

Version 1 (Blaise Carrupt, 23.07.2014 10:42) → Version 2/8 (Blaise Carrupt, 23.07.2014 10:43)

h1. Code Entity

A code is a common [[Thesaurus#Entity|entity]] that regroups [[Thesaurus#Entity|entites]] having following fields :
* a translatable [[Thesaurus#Code (Field)|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 [[Thesaurus#Screen|screen]]" invoice" is a code, as well as "[[Entity Invoice|Invoice]] "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

Each value also has a type :
* System : user cannot modify the value, except its description
* User : user can modify the value

Accessible by a [[Thesaurus#Code (Field)|code field]]
Translatable

Using entities :
* [[Entity Code|code]] : type of message

Examples :
* SCR_FIELD_MANDATORY - Field '%0' is mandatory, Le champ '%0' est obligatoire - Screen
* NO_ROW_SELECTED - No row has been selected, Aucune ligne n'a été sélectionnée - Screen
Add picture from clipboard (Maximum size: 32 MB)