Unable to save information on list view when I switch screens

Hi there...
I have a problem, I can not save in the list when I switch between screens.
At the first login, I manage to save and delete indexes from the list.
But as soon as you move to another screen everything is deleted. Just refine the goal and keep the list.
Is it possible to show me where I defined incorrectly?


Thank you.
Regards
Ido

You need to save your list to a tinydb in order to access the list again, via the tinydb, in another screen.

Store values on TinyDB with that logic:

@GuiM, Screen Initialize example would be "List_You_Want_To_Restore"

Hi there...
thank you for the quick reply..
I tried what you said, but got the following error:

image

This is what I did:


could I have defined incorrectly?

Regards Ido

Can't see anything wrong with your blocks for setting the items to the list

You might consider creating a list of lists instead of long strings , which will make it easier to manage the saved data ?

blocks (24)

Right, it may be a best text, just was an example.

Hi there...
I tried the subject ..
Unfortunately it does not work out for me this way, since I need to add an unlimited number of items to the list so it limits me to a number of items.

Regards
Ido

Unless you are talking "in the millions" not sure what you mean?

If you can share you blocks and identify what is not working we may be able to help.

You should also use Do It when connected to the companion to identify what is working and what is not working

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Hi there..
thank you for the quick reply. :smiling_face_with_three_hearts:
What does not work is: Save the list after switching screens.

Add the items to the list, it is not a million items but a high number for example 20.
If I use block (make a list) I will have to duplicate it 20 times, am I wrong?

I shared the blocks up here, you can see ...

Regards
Ido

Each time you click the button you will add a new item to the list so you do not have to repeat anything.
Everything is stored in the list

You then iterate over the list to extract each item in the list that holds the data, or select a particular item that matches any criteria you use.

Learn about using lists:

General Tutorials

1 Like