hi everyone first sorry for my poor english.please try to understand my problem:) .
i tried to make a favourite list from different list in other screen.in these pics i tried to get selected items in list in screen4 and show them in screen6 list. blocks did it but when i exit from screen6 favourite list get empty.i want load them all in screen6.which blocks should i use?
If you are initializing a list as variable use Create.EmptyList
.
You need to save your list to a tag in tinydb, then you can recall the list from the tinydb on other screens.
It doesn't look like you are changing screens correctly, which will cause you problems....
Use different screens wisely
- Before starting to create another screen, first you should think about is it really necessary?
- See also Building apps with many screens and SteveJG's post about advantages/disadvantages, because in only one screen you also can use vertical arrangements to simulate different screens, just set the arrangements to visible = true/false as needed...
- See also Martyn_HK's example about how to use Tabs in App Inventor and another example from Cyd. and my Tabbed Screens Demo
If you decided to use different screens, then you should switch them correctly, else you will run out of memory after a while...
The recommended method of switching screens in App Inventor
(Thanks Taifun)
Also see demo: multiscreen.aia
This method of screen switching is less problematic. You don't need to pass text to another screen, no closing events are needed. We only use the initialize block.
alles klar....
thanks for everyone... i will try all advices