Global variable (list) not visible outside of web request

Hello people. Here is newbie question.
In web request I fil list gamelist with data from spreadsheet.
image
I show first item in label inside web request and it works fine.

Problem is when I want access it outside of web request.
When screen initialize, I call web quest (filter) and then show first list item in label.

. I get error list is empty, length 0.
image

Why when list is global and it should be available inside entire screen?

Looks like you are trying to get the data from your list before it has been set. Difficult to be certain because you only show partial blocks.

Run filter GET then only after your list is populated in Web1.GotText can you access the list data.

How I can add When Web1.GotText (in my case When filter.GotText) inside When screen initialize? All examples of web request are as separate set of block.

Move everything after the filter GET to the bottom of your filter.GotText

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.