# Data Stored as List of Lists in Firebase

**URL:** <https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665>\
**Category:** Questions about Thunkable X\
**Created:** [July 10, 2019, 2:49pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665 "2019-07-10T14:49:50Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![xcmdirector](https://avatars.discourse-cdn.com/v4/letter/x/50afbb/32.png) [@xcmdirector](https://community.thunkable.com/u/xcmdirector)\
**Post date:** [July 10, 2019, 2:49pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/1 "2019-07-10T14:49:50Z")

</div>

Helo Guys,  
I have an App made in Classic Thunkable, where data is stored as a list of lists.

My question is: in Thunkable X its possible to work this way?

This is the way I work on classic:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a426b07e782bc84e46c8ec0ef96dbad5cec4967.png)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 10, 2019, 4:26pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/2 "2019-07-10T16:26:27Z")

</div>

Hi @xcmdirector - have you tried using the Object blocks with this?

[https://docs.thunkable.com/objects](https://docs.thunkable.com/objects)

---

<div class="post-metadata">

**Author:** ![xcmdirector](https://avatars.discourse-cdn.com/v4/letter/x/50afbb/32.png) [@xcmdirector](https://community.thunkable.com/u/xcmdirector)\
**Post date:** [July 10, 2019, 5:47pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/3 "2019-07-10T17:47:07Z")

</div>

Using Objects to write data to Firebase I have this result:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/b/9bdecbc28b9aee4edc1ab6ea009bc5070368f14f.png)

And then if I try to read this data on Thunkable Classic I can´t get the data fields.

---

<div class="post-metadata">

**Author:** ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)\
**Post date:** [July 11, 2019, 1:56am UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/4 "2019-07-11T01:56:52Z")

</div>

If I need to store a list I use the make ListFromText block in the list drawer and change it to make TextFromList. Then when I call the data I use that same block but set it to make ListFromText. It works like a dream.

---

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [July 11, 2019, 2:54am UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/5 "2019-07-11T02:54:29Z")

</div>

Hello there, @xcmdirector 👋

> [@xcmdirector](#):
>
> ![image](http://community.thunkable.com/uploads/thunkable1/original/3X/9/b/9bdecbc28b9aee4edc1ab6ea009bc5070368f14f.png)

The Red box u highlighted above, is it okay for u as **Storing Data?**  
Then I’ll try solving your problem according to your answer 😄

Thanks! 😄

---

<div class="post-metadata">

**Author:** ![xcmdirector](https://avatars.discourse-cdn.com/v4/letter/x/50afbb/32.png) [@xcmdirector](https://community.thunkable.com/u/xcmdirector)\
**Post date:** [July 11, 2019, 5:52pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/6 "2019-07-11T17:52:01Z")

</div>

> [@kartik\_old](#):
>
> Then I’ll try solving your problem

Hello Kartik,  
the red box is the data writen by the Thunkable X, and for me the best will be if data was written like in the others records.

Thanks!

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [July 11, 2019, 6:01pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/7 "2019-07-11T18:01:40Z")

</div>

The data stored in those other items (the way you want them formatted) are json, so you should probably use the “generate json from object” block when you write to Firebase and it will store them as a json string rather than as individual objects under the key.

---

<div class="post-metadata">

**Author:** ![xcmdirector](https://avatars.discourse-cdn.com/v4/letter/x/50afbb/32.png) [@xcmdirector](https://community.thunkable.com/u/xcmdirector)\
**Post date:** [July 11, 2019, 6:50pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/8 "2019-07-11T18:50:30Z")

</div>

> [@samclever](#):
>
> Then when I call the data I use that same block

@Kyle_Williams thank you so much!  
I think its working as I need.  
I will do some more tests.

Thanks!

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [July 11, 2019, 7:06pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/9 "2019-07-11T19:06:35Z")

</div>

Just a note that I recommend using Cloud Variables rather than the Realtime Database component to store to and retrieve from the Firebase Realtime DB. Behind the scenes they use the Firebase Realtime Database to store their values (and use your provided Firebase API key and URL) but they are much simpler to use (e.g., no `'then do'` slots are required)! The name of the Cloud variable ends up being the Firebase key. See the documentation for Cloud Variables [here](https://docs.thunkable.com/variables) for more details.

-Mark

---

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [July 12, 2019, 12:39am UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/10 "2019-07-12T00:39:59Z")

</div>

Hi, @xcmdirector! 👋

> [@xcmdirector](#):
>
> the red box is the data writen by the Thunkable X

Ok…  
So, do u want to store from Thunkable X & read some data fields on Thunkable Classic, right?

---

<div class="post-metadata">

**Author:** ![xcmdirector](https://avatars.discourse-cdn.com/v4/letter/x/50afbb/32.png) [@xcmdirector](https://community.thunkable.com/u/xcmdirector)\
**Post date:** [July 12, 2019, 1:48am UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/11 "2019-07-12T01:48:56Z")

</div>

> [@kartik\_old](#):
>
> fields

Yes

---

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [July 12, 2019, 3:19am UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/12 "2019-07-12T03:19:09Z")

</div>

### Ok.

### So, u have cleared the first step - storing from **Thunkable X**. 😄

For the reading of data, You need to have a specific project bucket name - not random letters.  
**_What on earth are Project buckets?_**  
**Answer** – those random data titles, in the below image, **“qwetbdszfgbjyui32s9ghathbfgh”**  
are known as project buckets. (in easy language, the title for a group of fields/tags.)

> [@xcmdirector](#):
>
> ![image](http://community.thunkable.com/uploads/thunkable1/original/3X/9/b/9bdecbc28b9aee4edc1ab6ea009bc5070368f14f.png)

I currently don’t know how to set Project buckets from Thunkable X…  
Anyone can help over here?

Thanks 😄

---

<div class="post-metadata">

**Author:** ![udharma1979a](https://avatars.discourse-cdn.com/v4/letter/u/8baadc/32.png) [@udharma1979a](https://community.thunkable.com/u/udharma1979a)\
**Post date:** [February 26, 2020, 7:47pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/13 "2020-02-26T19:47:50Z")

</div>

HI. i want to display status on app. for that i want to update the current status on firebase manually. how to enter the value on variable on firebase, when i call on app it should show the changed details

---

<div class="post-metadata">

**Author:** ![kidd7061](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kidd7061](https://community.thunkable.com/u/kidd7061)\
**Post date:** [March 7, 2020, 8:09pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/14 "2020-03-07T20:09:08Z")

</div>

Hey Mark,

When using the cloud variable to store data in Realtime DB, I’m having trouble figuring out how to separate the data by user. Is this even possible or is cloud variable meant to only be completely universal? Using the Realtime component, I’m able to create multiple sub-buckets using a “/”, to separate by user, but I’m having trouble making this work with cloud variables. Any advice?

---

<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:** [March 7, 2020, 8:27pm UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/15 "2020-03-07T20:27:47Z")

</div>

Hey @kidd7061, I was just asking @Mark about this recently. I wasn’t able to get a response fast enough so i decided to figure this out myself.

See the answer to your question [here](http://community.thunkable.com/t/using-cloud-variables-to-secure-user-info-plus-save-and-retrieve-lists-of-values/502646)!!!

---

<div class="post-metadata">

**Author:** ![kidd7061](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kidd7061](https://community.thunkable.com/u/kidd7061)\
**Post date:** [March 8, 2020, 5:07am UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/16 "2020-03-08T05:07:51Z")

</div>

Wild! I was just reading your post about it before I saw your reply. I’m studying your post now.

---

<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:** [March 8, 2020, 6:11am UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/17 "2020-03-08T06:11:29Z")

</div>

Hey @kidd7061, I just started building another app using this idea.

Here is how I am handling all of the different paths that I am using. It got confusing after 3.

 ![Screen Shot 2020-03-08 at 12.56.16 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/8/3867e9fc8d49a4646bdb3cd08fa1d14d59188b8c.png)

anytime i create an actual function/method. I always name them func.CorrespondingFunctionName to avoid confusion.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:40am UTC](https://community.thunkable.com/t/data-stored-as-list-of-lists-in-firebase/138665/18 "2024-11-08T11:40:31Z")

</div>


