TinyDB problems with saving two variables

I am wanting to make an app that takes input from two different text boxes and links them together with the data base. Help please, I don't know if I should use a list either.

dataBaseSimple.aia (4.7 KB)

Welcome!

If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...

To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.

Taifun

1 Like

image

Your data is a simple one to one relationship, one phone number for one name.

Use the names as tags and the phone numbers as the values of the corresponding name tag.

So a TinyDB tag list will give you a list of the names, and a lookup by tag of a name will give you the phone number of that tag.

Here is how to do it using the power of TinyDB:


dataBaseSimple (1).aia (3.6 KB)

I threw in a List Picker to let you see all the names, and show the phone number of the selected name.

sorry, the delayed response. this works great thanks!

(added to FAQ)

i dont need list picker.

After breakfast, I can write a version that would make the students beg for a list picker.

They would have to type in Everything

P.s. please stick to the other thread

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.