Skip to first unread message

Douglas Purcelle

unread,
Dec 8, 2015, 6:49:30 PM12/8/15
to MIT App Inventor Forum

Hello all, 

I hope someone can help me. I seem to struggle with loops and lists. I have done this from the beginning of programming and never really succeeded writing anything useful. I am having the following issues: 

Loops, List, and TinyDB. TinyDB(I'm used to MySQL) and can find it on device. List to me are arrays and I those I really never understood how to use. Loops I understand what they do, but just don't seem to understand how to implement them properly.

I can't seem to retrieve data from a TinyDB if its in a list. I can somehow manage to make a list, but now I'm not sure if that is correct. 

Here is an example of what I have: 


Thank you in advance,

Douglas

Taifun

unread,
Dec 8, 2015, 8:10:54 PM12/8/15
to MIT App Inventor Forum

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 App Inventor, 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.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by  Taifun.         



Douglas Purcelle

unread,
Dec 9, 2015, 3:23:19 AM12/9/15
to MIT App Inventor Forum
Thank you for your quick response. I have this book and the ones here: http://appinventor.pevest.com/?page_id=33 . I have also taken an online course at edxonline.org on this topic. I'm having trouble putting the two together. I'll go back over the material and try again. 
I chose AppInventor because it looked easier than Basic4Android and I could spend less time with it. Time is something I don't have much of anymore. Using AI2 I can at least get my layouts correct. 

Again Thank you and I will go back over these links again, 
Douglas

SteveJG

unread,
Dec 9, 2015, 11:11:03 AM12/9/15
to MIT App Inventor Forum
Perhaps follow Taifun's List advice.   .   Regarding your course and book you paid for; please address questions about the code to the author and to these commercial developers .. you paid for the book and they should provide support for their code.   .   

Retrieving a list from a TinyDB is simple if you followed the tutorials and advice we recommend here Douglas...

Try something like this as a test Project:


Do you understand how to retrieve a List from a TinyDB now?     Button4 creates a list and adds the List to a TinyDB tag called storedList .   Button5 retrieves the stored list by again using the storedList tag; it then displays the List as a raw list dump in label1 and then again in a formatted listing in label2.

Does this help?     and please do read the recommended documentation mentioned by Taifun.     

Regards,
Steve

Douglas Purcelle

unread,
Dec 9, 2015, 3:07:05 PM12/9/15
to MIT App Inventor Forum

Perhaps follow Taifun's List advice.     
Wow, why didn't I think of doing this. I have followed all of Taifuns links, I know how to use google I've seen these sites before.


 Regarding your course and book you paid for; please address questions about the code to the author and to these commercial developers .. you paid for the book and they should provide support for their code.
Really, they have support forums too. Who would have thought. I've been there already. So its not Ok to seek other forums for help?? I thought that was forums were designed to do. Help others in need. 


Retrieving a list from a TinyDB is simple if you followed the tutorials and advice we recommend here Douglas...

Try something like this as a test Project:


Do you understand how to retrieve a List from a TinyDB now?     Button4 creates a list and adds the List to a TinyDB tag called storedList .   Button5 retrieves the stored list by again using the storedList tag; it then displays the List as a raw list dump in label1 and then again in a formatted listing in label2.

Does this help?     and please do read the recommended documentation mentioned by Taifun.     
You had a change of heart and decided to help instead of criticize what I'm doing wrong. This was somewhat helpful. This will get me started in the right direction. 
Thank you for the example. I'll keep reading and doing other tutorials and hopefully I will understand multiple list as well. 
Douglas 
Reply all
Reply to author
Forward
0 new messages