March 2020
Intermediate to advanced
534 pages
14h 15m
English
There are two notable limitations when an enum is created as extensible.
One is that we can't use it in conjunction with the mandatory property on fields in order to force a user to select a value. The first element is probably zero (which is not valid for mandatory fields), and will usually work—we can't guarantee this behavior and must not use this technique.
The other limitation when using comparisons on enums is using relative comparisons, such as greater than. For example, the options for the SalesStatus base enum are as follows:
This enum was changed from a standard to an extensible enum in an early application update. Prior to the update, the following code would ...
Read now
Unlock full access