Sometimes customers request a specific filter in a form. The filter is based on an enum and must have All element to display all records regardless of field value. For example, a filter has 3 elements: All, Quotation, Order; although enum has only 2 elements: Quotation, Order. To achieve the result you need to add a ComboBox control in codeThe algorithm is the following:- … Continue reading AX / D365FO – How to add enum filter with “All values”
Category: ComboBox
AX / D365FO – Get value from Form ComboBox
In MyForm I have a ComboBox (myComboBox) with EnumType myEnumType. I want to get its value. To get the value of the ComboBox use the selection method if(myComboBox.selection() == myEnumType::Value1) { //action }