May 2017
Intermediate to advanced
442 pages
11h 55m
English
Base Enums are therefore a great way to provide a link between logic and the user interface. However, there are limitations; the options are defined in code and the user cannot add to the list. The problem with making the options user-definable is that we can't use the values in code, unless we want to add the options to a parameter form, which is not very extendable!
What we can do is use the code pattern exemplified in the Item model group form. Here, we have a user-definable list, with an Enum that determines the Inventory model that the items will use.
Read now
Unlock full access