Kenny Arreaza

unread,
Oct 13, 2014, 5:43:35 PM10/13/14
to mitappinv...@googlegroups.com
Good afternoon, I require help for an issue in the realization of my first application quite complex. I have 7 Spinner are 5 options each, and I need to select any of these 5 options remain stored when you close and open the application using the TinyDB complement. 

Achieved by testing it with a single Spinner. Adding two or more Spinner, provided all are saved with the same selection. Perform tests by adding 7 different variables and I could not do it, also adding 7 times the TinyDB add one by Spinner. and yet still retain all the same selection the last. Achievement explain ??. 

What can be a solution for this problem? 

Thanks for all your support.

Abraham Getzler

unread,
Oct 13, 2014, 11:05:00 PM10/13/14
to mitappinv...@googlegroups.com
If you are storing complex data you should use Fusion Tables.

Do the Pizza Party tutorial.

ABG

Markus Olszewski

unread,
Oct 14, 2014, 3:56:21 AM10/14/14
to mitappinv...@googlegroups.com
Hi Kenny,

I don't really understand what you want to achieve.

Could you confirm; you have 7 spinners each have 5 choices and you want the selections to remain selected (visible as spinner text) after re-opening the app using TinyDB?

If so then you can do this:

If this is not what you wanted, let me know :)

Markus

Kenny Arreaza

unread,
Oct 14, 2014, 9:56:06 AM10/14/14
to

Markus Olszewski thanks for your quick response and support. Want to do that right. I have 7 Spinner, each with 6 options eg (One, two, three, four, five, none). The default selection is to start any application. Now I want you to select any of the other 5 options at various Spinner me stay saved that selection. Suppose I open the application and Spinner 1 is none, I select FOUR, I close the application. Desire to open the Spinner 1 is on the selection FOUR. 

This I have already what degree, but only with a Spinner. Do not know how to save different variables at the same time because the problem I've had is that for example, the application starts and Spinner are all default to NONE, selected in the first five numerical order by Spinner Spinner 1 (ONE), Spinner 2 (TWO), Spinner 3 (THREE, Spinner 4 (FOUR), Spinner 5 (FIVE) and save and close the application. Spinner All appear by default the variable is saved for last FIVE. Analyzing seems that overwrites and for that reason is the last value that dominates all Spinner. 

Thank you for the example that you enclose. Attached as achieved easiest way to do it BUT ONLY FOR A SPINNER. Thank you for all your help and support



Taifun

unread,
Oct 14, 2014, 9:59:58 AM10/14/14
to mitappinv...@googlegroups.com
the solution of Markus looks fine
however now in App Inventor 2 we do not need the if condition anymore, because now we have the valueIfTagNotThere socket, which makes everything much easier...
just add the default value in the valueIfTaNotThere socket, in the example it's 0...



Taifun

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

Kenny Arreaza

unread,
Oct 14, 2014, 10:32:28 AM10/14/14
to mitappinv...@googlegroups.com

Markus Olszewski, Taifun, Abraham Getzler immensely grateful for their contributions. 

I was able to solve the problem with a large contribution of a partner in a youtube tutorial, but also their contributions were of great help. 

Greetings. Issue resolved. Image is attached with solution.


Markus Olszewski

unread,
Oct 14, 2014, 12:24:12 PM10/14/14
to mitappinv...@googlegroups.com
Ah yeah that's right Taifun!
Keep forgetting it! Will get used to the valueIfNotThere one day :)

Markus

Reply all
Reply to author
Forward
0 new messages