Entity Code » History » Version 1

Version 1/8 - Next » - Current version
Blaise Carrupt, 23.07.2014 10:42


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 invoice” 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
Each value also has a type :
  • System : user cannot modify the value, except its description
  • User : user can modify the value

Accessible by a code field
Translatable

Using entities :
  • 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)