Search code examples
enumsaxaptadynamics-ax-2012

Hiding enum elements on runtime ax 2012


If you have an enum which is used in more than one place, and at one of the places you need to hide one of the elements?


Solution

  • Hiding enum elements on runtime ax 2012

    1.Override enter() on created ComboBox and write this code:

    this.delete(enum2str(EnumType::Element1)); super();

    Now run form and check. Element1 is the element which you need to hide.

    This worked for me.