Skip to first unread message

Ricardo Barbosa

unread,
Apr 3, 2017, 1:56:35 PM4/3/17
to MIT App Inventor Forum
Hello everyone again.

I'm still trying to put my TinyWebDB to work. It is already configured and working on web. I'm using "AllTags Deletable Listing TinyWebDB Service for App Inventor". So everything is fine, except because I can't use it and the question is about how to get and store data from web. I mean, I can STORE data but I can't RESTORE it. As an example, while searching I've found the amazing tutorial from Mr Stephen Z about 'User Login" (https://groups.google.com/forum/#!topic/mitappinventortest/SqSFeLBU8JA). Maybe if I use it as a model, I can learn faster. Here it goes: When I use the SUBMIT Procedure the program "append" a register on TinyWeb, tag name "userList" just to keep the username. Ok. The first question is: when I submit the next user and password, instead of appending just the second user, the next register has a 'list' with two names, [the first,the second]. And if I do that n times, the 'Nth' item will be [1st,2nd,3rd,4th,5th, ... Nth]. Is it really necessary?! Besides that, I simply can't authenticate using the username and password registered. The system says "Username Incorrect - Please try again". I know there is one register for each user (beyond the first UserList) with password, name and favorite food. Please, what is wrong in my understanding?
Thanks again.

Ricardo Cesar

Abraham Getzler

unread,
Apr 4, 2017, 3:53:20 PM4/4/17
to MIT App Inventor Forum
You didn't include any links or blocks images, so I'm working blind here.

You mentioned a particular app design that required keeping a list of keys (userIDs)
under a single tag.  I don't have access to the particular flavor of TinyWebDB
you are using (link?), so I don't know if it has a way to retrieve a list
of keys (tags) from the data base.  
For a long while, TinyDB lacked such an ability, and that forced app writers
to have to compensate for that by keeping a list of tags/keys under a special
tag/key, a pain in the neck.

If you have an older tutorial, it might never have been updated to take advantage of
newer facilities, like the TinyDB.GetAllTags(?) block or your flavor of TinyWebDB's
magic tag value (Look in its doc, to see if it has one.)

So that's the history.

Further discussion must rest on facts and details.

ABG

Reply all
Reply to author
Forward
0 new messages