Bing value in dropdown list and tag

Dear, apologies for the basic question, I'm still learning

I have a dropdown list with following dataset

Value Label

0 Select Route

112 Route_1

122 Route_2

111 Route_3

e.t.c

And also I have a OPC DA server with opc_to_plc boolean tag, for example: tag_route_1, tag_route_2, tag_route_3

How to bind Value and tag OPC DA, for example if select Route_1 then tag_route_1 = 1, else 0

Hi!

You can create an event on the dropdown (onActionPerformed). When the value changes, you can read the value, and if the value is 1, update tag_route_1, if 2 then 2, and so on....