Data Stored as List of Lists in Firebase


#1

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:


#2

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

https://docs.thunkable.com/objects


#3

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

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


#4

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.


#5

Hello there, @xcmdirector :wave:

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 :smile:

Thanks! :smile:


#6

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!


#7

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.


#8

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

Thanks!


#9

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 for more details.

-Mark


#10

Hi, @xcmdirector! :wave:

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


#11

Yes


#12

Ok.

So, u have cleared the first step - storing from Thunkable X. :smile:

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.)

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

Thanks :smile: