Enums

A typical field type used in Dynamics NAV and Business Central development is the option field. While you can define multiple option values for a field, those values are stored within a static string that you cannot modify using a Business Central application. This eliminates any possibility of adding new option values, or changing any of the existing ones.

In AL, there is a new field type called enum, or the enumeration type, for those who have developed in other languages. Enums bring with them the ability to extend the list of available values that they contain.

This recipe will show you how to create an enum object and link it to a field in a table.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset