Hi all,
I'm writing a JS script inside an app. While writing the code, it autosuggests the components and I can preview the values (for example, a ListView, I can write in JS MyListView.instanceValues
and I can peek its values):
Though when I run the script for real, it is undefined:
Not sure what's going on? Are JS scripts not able to access the component states?
1 Like
If it helps, this bug happens when triggering the JS query from an event handler, for example, after clicking a button and running the query.
Running the JS from the "Run" button has the scope.
1 Like
Hi Nico,
Do you have this button in the picture at the bottom clicked to enable instance values in your listView?
1 Like
Interesting. Maybe we should back up and ask what you're trying to do? You wrote:
const tableRows = EditExpectedcondslistview.instanceValues.
Are you trying to get this data back out? What is EditExpectedCondsListView?
1 Like