The list view knows about the widgets it instantiates:
This script would live in the widget that hosts the listview itself but you can also delegate the dispatch to another actor / widget. Ensure you flag both the List View and the Checkbox (in the instantiated widget as isVariable
at the very top of the details panel)