How do you properly change any data in the entry widget, from the widget containing the list view, when using the ‘On clicked’, ‘On hovered’ nodes etc.?
I tried creating a reference variable to the entry widget, in the Object. And then setting that variable in the entry widget to ‘self’, on the ‘On List Item Object Set’.
Then, I’m getting the reference variable inside the list view widget from ‘On item clicked’ object reference output, and manipulating any data that way.
And it works, but I feel like it’s forced. Is there a better way of doing this?
I’ve been having the same issue, and your post is the only solution that I’ve found for this problem.
So, thank you I guess
Not sure if there is any other/better way to do it.
I believe the confusion comes from the fact that you wouldn’t:
manipulate entry widget ‘on item clicked’, from list view widget
You never do; instead, manipulate the object’s data onClick returns, and regenerate the list (which will feed the widgets data), since manipulating the widget directly would not propagate data back to the underlying object. However, Regeneration would release (not destroy, though) all instances and evoke the interface’s ItemObjectSet again. If you do not wish to refresh every visible widget this way, use onEntryInitialised which returns both - the object & the widget, and bind a dispatcher here dynamically. We end up with: