I got it, thank you But:
No error you will get from this while loop.
You can change the name variable as you want. I made it like this to take less time .But don’t remove it.
Okay I won’t remove it Btw, I can’t find this block:
Where can I find it?
OK I found it
I don’t guess I did something wrong. But it doesn’t work though
a black screen appears when I enter the screen
Wait a while.That happens because of calling many columns in screen initialization.
I did wait. I waited for about 30 minutes. But literally nothing happened
Okay, i will post another solution with a timer.So the screen initialize as it should then get data after initialize.
Looking forward to your post
Sorry for being late @Mamoball_Turkiye_Club,
Just add a clock component and set its interval to 2000 and then add the timer event in the clock blocks.And put this blocks inside :
set clock1.enabled to false
and then add the get column blocks that we’ve disccused before.
Hi @Mohamed_Tamer! You mean this?
If so, it still doesn’t work. When I enter the screen, the app freezes.
Are you putting any thing on screen initialize.What is your timer interval?And how you open this screen ( show your other screen block that redirects the user to this screen. Maybe the issue is there ?
These are all the other blocks I use on this screen:
Time interval is 2000, just like you told me to set.
And it’s possible to open this screen from many screens by using bottom navigation. But I don’t think it causes the issue.
Create a global variable, say “colName”.
Start by setting it to “Team”.
Call “GetColumn” for the team column.
On Got Column:
if colName == “Team”:
set the team label texts to the values of the column.
set colName to “O”
get column for the “O” column
else if colName == “O”:
set the labels under “O” to the values of that column.
set colName to “G”
get column “G”
… and so on.
Hope I was clear.
Mya be the problem is because of setting that large dictionary on screen initiazlie.What about setting it on the clock timer event too.
Just try to set initialize the variable to empty dictionary.And on clock timer set the variable to the dictionary.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.