Issue accessing `instanceValues` via event handler defined on list view

Hi,

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.

Now, we want to parse the data and update the database via JS script.
When manually executed, the script works well and returns the data.

However, when the JS script query1 is triggered via an event (change of switch1), the script returns undefined.

So, it's not possible to use the data of instanceValues.

Any thoughts?

Regards,

I just ran into the same issue. @andoliveyou any suggestions?

Hi @MicExpert have you figured out a workaround to this?

I use a transformer as a buffer to parse the data between my objects and instance values. This approach allowed me to get my process working.

Regards,

Hey @MicExpert - thanks for documenting this issue and for sharing a reasonable workaround, as well! :slightly_smiling_face:

I'll file a bug internally, talk to the team, and provide an update here as soon as I have news to share.