I think I found a bug, preventing a fairly simple and common use case.
The listview is used to display data, edit the data and then update the database.
When the switch1 is changed, the instanceValues are updated. That's the expected behavior.
When I manually execute this query, it works fine and the instanceValues are logged in the console. When I trigger this query via the change event handler on my input fields within the listview, the query fails and console logs undefined. Can you please provide an update?
Thanks for the bump, @FloodMatt! I hear you and understand the frustration, given the fact that this should just work without the need for tweaks or hacks. There hasn't been any significant movement internally outside of scoping out the necessary work, but I'll pass on your feedback.
In the meantime, though, there is a relatively simple workaround. Instead of directly referencing listview19.instanceValues within your JS query, you can instead create a new transformer that simply returns listview19.instanceValues and then reference that transformer instead.
So, strangely I had an app that suddenly broke because of the above. I had been able to refer to instanceValues from within a jsquery, and from one day to the other this stopped working. I have now applied the transformer workaround, but just concerned about other apps I have that worked before and now may have silently broken.