Example of X++ code

There you will find a Word file with an example of code that you can use in Dynamics AX.

This code respect the Best Practices of Microsoft.

AX Development Help

Removing enum value from a form combobox

This is an example of how to remove a enum value at runtime from a combobox in a form. The enum have 2 values:

  • Enum : : value1
  • Enum : : value2

Overwrite the “enter” method on the combobox and write the following.


Now only option 1 will be displayed.