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
}

Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s