I am trying to make a code so that the user selects a name and for that name an ID is hidden in the backround. I am trying to get data from a sheet based upon my ID that is saved by the name that the user selects.
This is my sheet for the name and the ID’s.
This is my sheet with the number that I need to pull data from
So these are my values from my data source. I will try to explain what I am trying to do better. Whenever the user goes to my app and registers a student, they will be requested to choose a class from a list that contains the 3 items that are in the first sheet. These are my 3 classes. Now, what I am trying to do is, on a different other page. When the user selects the items from the dropdown, it should save the name in the label visible to the user and save in a invisible label the ID that is associated with each class. Until this part is which I have successfully coded. Now, based on the ID that is saved in the invisible label, I want to get all the data from the 2nd page that have that specific ID in the 2nd column.
I have no idea what that means, I’m sorry. Can you provide a screencast video of that?
Something to consider is that using stored variable blocks is really slow compared to app variables. So your loop is going to take a long time.
When I need to get the value of a stored variable, I set an app variable with the same name to the value of the stored variable and then use the app variable block throughout my code. I only use the stored variable blocks when setting the value of a stored variable.
What happens if you add a Wait block inside of your loop so you can see the values that are displayed as the loop runs? Because it’s possible that the label’s text is changing quickly so you can’t see the last value.
I tried transferring the data from the stored variable to an in app variable, however, the data does not seem to change. The same error of the label block disappearing happens over and over again.
So after watching your screencast I am not sure what is supposed to be displayed. Is the user supposed to see the whole spreadsheet with their name in the list? Are you using a data list viewer to display the info that is disappearing?
The code snippet above is actually the same one which I am using. I just wanted to try showcasing the data in a different page and trying to see if it fixes the problem, which it unfortunately does not.
Im not sure how you have the height width settings set but I’ve found sometimes setting multiple items to ‘fill parent’ makes them disappear. Not sure if its even related but might be worth a shot to try and set the width and height of the list viewer (or column/row it is within) to a set number slightly smaller than the screen size and see if data appears.
Thank you for the input, I appreciate it. I have never actually used or known that that the “fill parent” fucntion is possible, so I dont think that is the problem, but thank you for pointing that out.