Suppose the combobox is linked to enum “ABC”. The elements in it are A, B C and D.
Now I need to get only A and C in the combobox and not B and D?
Is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is not possible to delete enum values or combobox values.
You can duplicate the enum, then delete elements or change the order (but not the enum value). It will be your responsability to maintain both enum types synchronized with future changes.
To assign an enum to another incompatible enum, just add zero to it!
Or you can update your combobox using programming (using a combobox without specifying an enum type):
See also Enum as a Parameter in Dynamics AX about adding new values to a combobox.
While it is not possible do delete enum values at runtime, it is possible to hide enum values for the entire application. Just change the enum value’s ConfiguratioKey to “SysDeletedObjects40”, and it disappears as a legal value. I will assume that this configuration key is not enabled!