March 2020
Intermediate to advanced
534 pages
14h 15m
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, SCM 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 (@Con:MyLabelId) is shown to the user. If a label was not defined in the enum element, the symbol (MyEnum:Value) 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 ...
Read now
Unlock full access