Here, when the entry widget is generated, bind to the dispatcher.
Clicking the button calls the dispatcher and provides the Item.
So far, the Listview is unaware anything has happened, so use the function of the Listview to set the selection. Now all the relevant events associated with the Listview will execute.
For selecting multiple things, you’d use the “Set Item Selection” function instead, which has a bool input. Check if the item is selected with “Get Selected Items” and query if the Item is in the list if Items.
I hope this helps, because it’s the simplest way I can think of.
A note on the Selection Mode of the Listview is that I’m not sure it’s of relevance what option you have selected and I don’t know if they work properly.
That’s because I think it is mostly linked to user input- as in clicking on the widget-,where as through scripting, even if single is selected, multiple items can still be selected. And you’re not using the Listviews input behaviour if you are using a Button.
