How do I get multiple values from firedatabase?

when a button is clicked i am getting 3 tags value from firedb,
how do I separate these values in firdb1.gotvalue?
image

image
this are the values
last two blocks are repeated

Why do you repeat get tag value since you will get same data again? As for your question when got value use if ...then ...else ..statement.... If get tag = name then get values in a list else if get tag == phone ...else if get tag = docmail ...

How will i get the value?
image

Don't get the tags at the same time. Get them separately, like this.

In this instance, after the values are received, the first item in global values is the value for docmail, the second is for name, etc.

It would be better if you post a screenshot of your firebase structure so we can propose the best solution.

You can call tags as you did, no problem. For example

image

3 Likes

Its stored in the same way under a user
image

1 Like

I have not yet given the values for the tags tho

1 Like

Ill try this and update you

1 Like

Do you want to get all subtags values ? For example docmail for all users ?

1 Like

no only for the user that is logged in

1 Like

Just remember that you have to set project bucket to coviCompanion/your_user's_name to get data from those tags

2 Likes

Yeah , I made it so when the user logs in tinydb stores the username in a tag

1 Like

Its working!!
Thanks @dora_paz really helped me out!
Do I have your permission to add your name to People who helped section of my document?

2 Likes

No need to, glad I could help :slight_smile:

4 Likes

Well ,
Its not working,
As it turns out the firedb never gave the value, when the user set the doctor mail ,name and number
it gave the tinyDB values
not the firedb ones
so the Get FireDB never actually worked.
so the values showed were directly from tinyDB (which not how i want it) and not from fireDB to tinyDB