Bind DropDown Value to Tag

An easy one for most of you but for the life of me I cant figure it out.

I want to bind the selected value (1-4) of a drop down list to a Int OPC tag to send it to the PLC

I’m stumped on how to do it ?


Create the drop down menu.
Make selection mode strict.
Add your 1 - 4 to the data dataset.

Make an event handler on propertyChange on the Dropdown
Select the Set Tag Value tab.
Choose the tag you want and the value select the .selectedValue of the dropdown menu.

Then anytime someone selects a different number, it will update the tag.