May 2017
Intermediate to advanced
442 pages
11h 55m
English
Enums are stored as integers in the database, and we can assign an integer value to a field based on an Enum.
When the values of the Enum are shown to the user, Operations will look this up using the Enum's definition from the field in the user's language. If a label is not defined for the user's language, the label ID, and not the symbol, is shown to the user. If a label was not defined, the symbol is shown.
For standard, non-extensible Enums, the following lines of code are effectively the same:
InventTable.ABCRevenue = 1; InventTable.ABCRevenue = ABC::B;
Of course, we would never write the first option - we use enumerated types specifically to avoid having to remember what each number means. If the Enum was created as ...
Read now
Unlock full access