System: Windows 10, 64bit, LV2018
Problem (See attached gif), Screenshot of code snippets
I have what I call an "Action Engine" that provides a simple UI to create cycle sequences for a number of devices (steppers, relays, solenoids, etc.)
There are "Device" field and "Action" fields involved in this front end procedure.
When the user selects the device, I parse a list of actions related to that device and write the array of strings to the dropdown selector (so that they don't have the option to select the wrong action for that device - in this case, it would just go to the default for that device.
I'm about 60% there - when moving linearly through the sequence programming (step 1, step 2, etc.), it works just fine. I'm using an event structure to update the fields on the user 'Mouse Down' and 'Value Change' events. I grab the coordinates (after a bunch of searching I actually found this method and modded to my needs - sorry, couldn't relocate to throw creds) then parse the list based on alphabetical characters, build the new array, and write it to the action control dropdown. -- See code snippet.
The problem happens when the user wants to change an "action" out of order. The array of strings from the last selected device appears. (It actually then populates with the correct values and displays the second time the user clicks it, but that's not good enough for retail) I've tried various things including 'on hover' and such. Please help. Thanks.
(PS: I understand why it doesn't work - the action dropdown is populated with the array of strings from the last selected device. Just now sure how to fix it....?)
"Fix it" - Populate the dropdown with the correct device actions before it displays, not after the second time the user clicks.