Hi, I want to make an app with drink recipes. I want to make it possible to add items manually to a listpicker (with the names, ingredients etc.).
For example:
The first screen will have a button called "Add recipe" and the listpicker called "Recipes".
If you click on "add" a new screen will open with textboxes for the name of the drink and some textboxes for the ingredients, in which you can write the name etc.
At the bottom will be a "Save"-button.
If you tap "save", the written name shall be saved in the listpicker and the ingredients shall be saved seperately.
If you pick the recipe from the listpicker a new screen shall open with the name of the drink and the needed ingredients for the picked drink.
This all shall be possible for different drinks. Is this possible?
Yes, this is all possible.
Learn about using lists:
- Lists by Sajal Dutta
- Lists appinventor.org
and
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