2016년 12월 28일 수요일

Need Help with List


What I am trying to do is to have two screens (screen1 and screen2). I am try to have an add item button on screen1 which leads me to screen2 and there is a textbox there to enter something. When I press the enter button on screen2, it will take me back to screen one and auto update the item to a list.

This is what i got so far but everytime screen1 initializes, it will add the last thing that i typed on screen2 onto the list. I just want it to add after i enter something from screen2 and not have it automatically add everytime screen refreshes. Can you guys help me? thanks

screen1.png 표시 중

--
What if you add it in before leaving Screen2 instead of adding it in Screen1.Initialize

-- 
Hi. Sorry i dont really understand. Im new to appinventor. How would i go abouts doing that?

--
instead of using 2 screens, what about using only one screen and vertical screen arrangements to simulate different screens?
just set them to visible = true/false as needed
doing this, you don't have to pass values between screens, which might be easier...

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook   http://www.appinventor.org/book2 ... the links are at the bottom of the Web page.  The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here:  http://www.appinventor.org/bookFiles  
How to do a lot of basic things with App Inventor are described here:  http://www.appinventor.org/content/howDoYou/eventHandling.

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of AppInventor, then try something and follow the
 Top 5 Tips: How to learn App Inventor

You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.

-- 
I'm sorry, but if you don't understand that, you really need to do some basic tutorials first before you try more advanced things. Follow the links Taifun posted and keep practicing.

-- 
That is very helpful Taifun. Exactly what i wanted to do. Thank you

--


댓글 없음:

댓글 쓰기