I have the following code in the property change event handler for a single select list:
if event.propertyName == 'selectedIndex': print event.source.selectedIndex
Two events are generated as I click on each item in the list box. Here is some sample output:
3 3 2 2 4 4
I think this issue has been highlighted before (“One other thing- working with Colby the other day, we found that the List.selectedIndex property change generates two events instead of one”). For details see:
Is this correct behaviour? If it is, can you suggest a simple workaround so I can get a single event for a single click?
We are using Ignition version 7.2.3 (b6630).
Thank you for your help,