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) 

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s