# How can I store and retrieve objects from the real-time database

**URL:** <https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [December 8, 2021, 5:56pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199 "2021-12-08T17:56:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kethmany.ratsavongy](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kethmany.ratsavongy](https://community.thunkable.com/u/kethmany.ratsavongy)\
**Post date:** [December 8, 2021, 5:56pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/1 "2021-12-08T17:56:21Z")

</div>

Hello everyone, I would like to know how can I store and retrieve objects from the real-time database as the purpose of this project is to collect the behavior of users to analyze the nutrition behavior, it is like Facebook to collect the behavior of users. So, I would like to analyze which menu they love the most and other behavior, so I need all data that users enter or click to go to database, could you please suggest how to do this, thank you very much

Kethmany

---

<div class="post-metadata">

**Author:** ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)\
**Post date:** [December 8, 2021, 6:38pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/2 "2021-12-08T18:38:03Z")

</div>

What have you tried so far?

---

<div class="post-metadata">

**Author:** ![kethmany.ratsavongy](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kethmany.ratsavongy](https://community.thunkable.com/u/kethmany.ratsavongy)\
**Post date:** [December 10, 2021, 2:25pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/3 "2021-12-10T14:25:18Z")

</div>

Dear Dean,  
I don’t know how to do, just asking if anyone can help about this

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 10, 2021, 3:00pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/4 "2021-12-10T15:00:12Z")

</div>

If you haven’t searched the forums or watched tutorial videos, start there. If you have, post a link to your project or screenshots of your blocks and explain what happens when you preview your project and what you want/expect to happen.

These may be helpful:

> [@Storing data to be reflected on google sheets](https://community.thunkable.com/t/storing-data-to-be-reflected-on-google-sheets/1650929/2):
>
> If you want to graph things in Google Sheets, why not store your data directly in Google Sheets? If you want to use Firebase, you can do that with cloud variables. Here are some examples of that: You don’t need a special block for accessing Firebase data… you just use the blocks in the Variables drawer. The name of the cloud variable is the path to the data in Firebase.

[![](https://img.youtube.com/vi/KvFvSkG6G-k/maxresdefault.jpg "Cloud Variables - Save User Data to the Cloud in Thunkable Drag and Drop UI") ](https://www.youtube.com/watch?v=KvFvSkG6G-k)

---

<div class="post-metadata">

**Author:** ![kethmany.ratsavongy](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kethmany.ratsavongy](https://community.thunkable.com/u/kethmany.ratsavongy)\
**Post date:** [December 10, 2021, 3:44pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/5 "2021-12-10T15:44:00Z")

</div>

Thank you tatiang, as I understand this method will allow user to use another device with all info that use to enter to previous one by syncing method but I wonder if we do this method, can we do save the user data later to do customer analysis or not, do you have any idea?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/0539e11aee5a25a815d97c3e538619ed584b151f.png)  
this is my project in Laos language , it is profile screen which include age, sex, gender, weight, height, nationality,…

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 10, 2021, 4:51pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/6 "2021-12-10T16:51:36Z")

</div>

If you want to store user data and analyze it later, you can use:

1. Firebase
2. Google Sheets
3. Airtable

The difference for me – and the reason I often use Firebase – is that with Firebase, I can keep user data completely separate. With Google Sheets and Airtable, the data from multiple users is stored in the same spreadsheet. That’s not always bad but for me, I’m always a little more careful about how I code my project is I’m using Google Sheets or Airtable.

If you have multiple people who need access to the data from the developer side, it’s probably best to use Google Sheets (or Airtable) since most people are familiar with that.

---

<div class="post-metadata">

**Author:** ![kethmany.ratsavongy](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kethmany.ratsavongy](https://community.thunkable.com/u/kethmany.ratsavongy)\
**Post date:** [December 10, 2021, 4:56pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/7 "2021-12-10T16:56:30Z")

</div>

Thank you Tatiang it is helpful explaination

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [December 10, 2021, 8:50pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/8 "2021-12-10T20:50:23Z")

</div>

> [@tatiang](#):
>
> reason I often use Firebase – is that with Firebase, I can keep user data completely separate.

This is how I usually my approach to saving data securely! There are other ways but I like this!  
 ![Screen Shot 2021-12-10 at 3.48.51 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/8/58d8e905e5d0cd34b9a3632bda551c773695f820.png)

And then i may use it later like this

 ![Screen Shot 2021-12-10 at 3.52.12 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/052797726b35bb97e0307d174611dfcae18ae580.png)  
to which it begins creating data under user ID’s like this  
 ![Screen Shot 2021-12-10 at 4.01.49 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/c/0c690cfa5921f592e5fb703c8ee4a12f390a32db.png)

---

<div class="post-metadata">

**Author:** ![kethmany.ratsavongy](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kethmany.ratsavongy](https://community.thunkable.com/u/kethmany.ratsavongy)\
**Post date:** [December 11, 2021, 3:43pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/9 "2021-12-11T15:43:54Z")

</div>

Thank you Jared, I will try this

---

<div class="post-metadata">

**Author:** ![kethmany.ratsavongy](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kethmany.ratsavongy](https://community.thunkable.com/u/kethmany.ratsavongy)\
**Post date:** [December 12, 2021, 3:51pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/11 "2021-12-12T15:51:47Z")

</div>

Hello Jared, I am still very new to building the block and my problem is when I see the blocks, I cannot identify where is the block come from which component as I only see your block but not design trees, So could you please help to clarify your component such as :

1. How to observe which blocks are come from where and it is which type of component?
2. Do the notes is the name of the screen ?
3. this method use which one of these : google form ? airtable ? or use own table in app  
4.if there aer the link of video tutorial , could you please suggest

rhank you very much  
Kethmany

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [December 12, 2021, 4:12pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/12 "2021-12-12T16:12:27Z")

</div>

> [@kethmany.ratsavongy](#):
>
> How to observe which blocks are come from where and it is which type of component?

Blocks are color coded. So is the component drawer. Check it out! 🙂

> [@kethmany.ratsavongy](#):
>
> Do the notes is the name of the screen ?

Not sure what you’re asking here. You can name a screen anything. I tend to name them based on what they do primarily

> [@kethmany.ratsavongy](#):
>
> this method use which one of these

Firebase data transferred to a local table

> [@kethmany.ratsavongy](#):
>
> 4.if there aer the link of video tutorial , could you please suggest

We have a whole series of videos working with apis and objects on [YouTube](https://youtube.com/c/Thunkable)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 12, 2022, 4:13pm UTC](https://community.thunkable.com/t/how-can-i-store-and-retrieve-objects-from-the-real-time-database/1650199/13 "2022-03-12T16:13:25Z")

</div>

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