I have a dropdown component which contains a few options.
The selected value is connected to an Ignition OPC tag via a binding. I want this to be bi-directional. The PLC value can update the dropdown, and a user selection will write to the PLC tag.
I have currently set up a script which is triggered by the dropdown propertyChange event, filtering by
if event.propertyName == "selectedValue"
I then write to my tag with
The issue i am having is that i can’t seem to distinguish between a USER selection change and a PLC tag change. The script is being fired on BOTH events.
I have two questions:
Is there a way to distinguish the two events so that i only execute the write tag script when the USER has changed the selected value?
Is there a way to prevent the script running on first load of the popup that contains these dropdowns so that the PLC tag value isn’t written to initially?