# Modify data in RealtimeDB

**URL:** <https://community.thunkable.com/t/modify-data-in-realtimedb/51947>\
**Category:** Questions about Thunkable X\
**Created:** [October 14, 2018, 10:17pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947 "2018-10-14T22:17:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 14, 2018, 10:17pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/1 "2018-10-14T22:17:08Z")

</div>

Hey, as if I get many users on my app it will fast become a mess. I so need to make sublists on Firebase. After playing a bit with json and else, I succeeded in creating the following :

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a54bbcf18adfd3303d4f5cf10a098ba704bb0cb2.png)  
Which gives : ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/97fa241f03d63bf8f936356669dba69870bc51bb.png)

But my question now is : How do I get to modify the sublist items ?

Could you please directly share the blocks I need ? Here is the demo project :

[https://x.thunkable.com/projects/5baa9bb71149e023913113fe/Screen1/blocks](https://x.thunkable.com/projects/5baa9bb71149e023913113fe/Screen1/blocks)

Thanks !

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 15, 2018, 5:01pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/2 "2018-10-15T17:01:43Z")

</div>

Hey @Mark ! I think this block is the solution I’m searching for ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/d/8dee24428ca2bf4c4b9afeba7132a6a74e653856.png) but sadly when I try to insert it it shows me this ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/2/821ff3808ad63aa70fa6448cc9c1133688a1ffb8.png)

Is this a known issue ? And if yes, do you know any workarounds ? Thank you !

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:05pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/3 "2018-10-15T17:05:39Z")

</div>

> [@AcrobatEpee](#):
>
> own issue ? And if y

Hello my friend,

try to drag it first to the blank screen so it gets gray.

After this put a text blocks to the “of object” and “to”

Then insert it at the place you want

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:06pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/4 "2018-10-15T17:06:59Z")

</div>

and be aware that this component only functions if you use a “old” variable from a purple function component!

…this bug 👾 followed me the whole weekend 🤪

Salut,  
John

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 15, 2018, 5:07pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/5 "2018-10-15T17:07:59Z")

</div>

> [@User81](#):
>
> try to drag it first to the blank screen so it gets gray.
> 
> After this put a text blocks to the “of object” and “to”
> 
> Then insert it at the place you want

This works !

> [@User81](#):
>
> and be aware that this component only functions if you use a “old” variable from a purple function component!

I am only using these variables at the moment 🙂

> [@AcrobatEpee](#):
>
> How do I get to modify the sublist items ?

Do you have a quick answer for this one please ? 🙂

> [@User81](#):
>
> this bug 👾 followed me the whole weekend

I know I’ve read yor posts hahaha 😂 ! Hope it’s fine now

Tried this :

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/d/cd4da44046bf1587025eb798a30463a99ef6e06b.png) if it might help 🙂

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:12pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/6 "2018-10-15T17:12:21Z")

</div>

> [@AcrobatEpee](#):
>
> Do you have a quick answer for this one please ? 🙂

give me a few moments to think…

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:17pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/7 "2018-10-15T17:17:35Z")

</div>

Unfortunely, I cannot open your demo project

But to answer your question:

Save to firebase…  
key = AcrobatEpee/2  
value= “8”

this should change the second list item to a 8

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:21pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/8 "2018-10-15T17:21:46Z")

</div>

> [@AcrobatEpee](#):
>
> Tried this :
> 
> ![image](http://community.thunkable.com/uploads/thunkable1/original/3X/c/d/cd4da44046bf1587025eb798a30463a99ef6e06b.png) if it might help

The “get object from JSON” makes here no sense - sorry 🙂

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 15, 2018, 5:22pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/9 "2018-10-15T17:22:50Z")

</div>

I am totally new to objects, what should I put instead ? A simple textblock won’t plug

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:26pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/10 "2018-10-15T17:26:03Z")

</div>

… I want to give you an idea, which textstrings are allowed in this context above:

make object from JSON…

{}  
{“name”:“AcrobatEpee”}  
{“name”:“AcrobatEpee”,“age”:99} 😛  
{[“apple”,“banana”,“pear”]}

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 15, 2018, 5:31pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/11 "2018-10-15T17:31:54Z")

</div>

I don’t get the idea I’m sorry I’m totally new to this. You’re telling me to recreate the list everytime with the create object block ?

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:37pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/12 "2018-10-15T17:37:22Z")

</div>

First, I tell you that “root/test” is definitely not a JSON and because of that you cannot use the get-object-from-JSON block here.

“{}” is an empty object.  
Please create objects with the rosa components and then use the get-JSON-from-object blocks and look at the output (maybe assign these blocks to a label. then you will learn it and understand

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:39pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/13 "2018-10-15T17:39:42Z")

</div>

understanding OBJECTS once really took four weeks for me 😏 … and now I think I was dumb, because it is a really easy issue and not very complicated

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:43pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/14 "2018-10-15T17:43:30Z")

</div>

Some friend of mine explained it to me like this:

Everything you know on our planet is an object 😯

For example a red apple 🍎:

{  
“apple”:  
{  
“color”:“red”  
}  
}

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 15, 2018, 5:44pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/15 "2018-10-15T17:44:21Z")

</div>

I succeeded in creating an entry in Firebase with the blocks : ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/2/9239faf8f2aab87114878ea2ca81a381e5e6fb7d.png)

I do not get how to make any other operation. Would you mind showing me a bit of blocks telling me how to access the item `mdr` I created here ? From that I will learn alone and stop bothering you hahaha

Thanks ! 🙂

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 5:45pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/16 "2018-10-15T17:45:37Z")

</div>

…or a 12 years old grey rabbit 🐇

{“rabbit”:{“age”:12,“color”:“grey”}}

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 6:03pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/17 "2018-10-15T18:03:44Z")

</div>

> [@AcrobatEpee](#):
>
> how to access the item `mdr` I created here ?

in Realtime\_DB1 call Get  
key = root/test

… the output will be “mdr”

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 15, 2018, 6:11pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/18 "2018-10-15T18:11:20Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/1/c19769ef7ac5912ae147ab0352ceabcdc431ecb8.png)

Output is `undefined` 😕

UPDATE : Now the output is showing like a miracle 😕

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 15, 2018, 6:23pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/19 "2018-10-15T18:23:36Z")

</div>

Hey @User81 ! After all this I think blocks would be the greatest option or even a simple project if you have a bit of time, I’ll share the final result when I’ll find it. Thanks ! 🙂

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 15, 2018, 6:53pm UTC](https://community.thunkable.com/t/modify-data-in-realtimedb/51947/20 "2018-10-15T18:53:54Z")

</div>

I generally recomment to NOT use the rose blocks with the realtime DB. instead use

in Realtime\_DB1 call Save  
key= “root/test”  
value = “mdr”

[Next page](https://community.thunkable.com/t/modify-data-in-realtimedb/51947.md?page=2)
