Dropdown dataset refresh

Im using a library script to generate a dataset for a dropdown component using runscript() in the expression binding for the dropdown.data item.
The script cycles through a set of tags and adds values to the dataset based on some conditions.
This all works fine when the popup window is opened.

The popup window displays and allows manipulation of a PLC UDT item.
When this PLC data is modified and “Saved”, I want the dataset in the dropdown to refresh (i.e. rerun the script that is bound to the dropdown data item).
How do I do this?

You want to use system.db.refresh, example in link, instead of table you will use reference to the dropdown component, still use ‘data’ though.
https://docs.inductiveautomation.com/display/DOC81/system.db.refresh

1 Like

thanks @jlandwerlen works perfectly.
added this to the focusGained script for the dropdown so that the dropdown is always refreshed.

1 Like