# How to display the deleted value from firebase to thunkable?

**URL:** <https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, beginner\
**Created:** [December 26, 2020, 2:14pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766 "2020-12-26T14:14:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bibaswan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bibaswan/32/92447_2.png) [@Bibaswan](https://community.thunkable.com/u/Bibaswan)\
**Post date:** [December 26, 2020, 2:14pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/1 "2020-12-26T14:14:17Z")

</div>

Hi!!  
I have made a app where you can upload and delete items in a data viewer list.  
I have given the code for creating a row in data viewer list–

 ![problem](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/8/28fa12664b5dc6525b362036b6066fe8dbfa77b2.png)  
Now I have given the code for deleting a row–  
 ![problem2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/4577d1951f2fd411f6248489a1b848c84753e078.png)  
After deleting its showing up on firebase like this–  
 ![problem3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/1/a16d622a86b51ffee2286ea1326bb6a382370882.png)  
 ![problem4](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/6/e689ec4454358dddcdebd3f7f18a50d4965a54a7.jpeg) ![problem5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/4/f4e3825db7c779ce317a07959f2edb37fb3dbecd.jpeg)  
But how do idisplay this deleted value in thunkable??  
Can anyone help me out??

---

<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 26, 2020, 2:16pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/2 "2020-12-26T14:16:24Z")

</div>

You would need to pull the value into the app before deleting it. Or save it to a variable.

Or

Do you mean how do you refresh the items in the list?

---

<div class="post-metadata">

**Author:** ![Bibaswan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bibaswan/32/92447_2.png) [@Bibaswan](https://community.thunkable.com/u/Bibaswan)\
**Post date:** [December 26, 2020, 2:18pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/3 "2020-12-26T14:18:39Z")

</div>

No I mean to delete a particular row when it is deleted.

---

<div class="post-metadata">

**Author:** ![Bibaswan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bibaswan/32/92447_2.png) [@Bibaswan](https://community.thunkable.com/u/Bibaswan)\
**Post date:** [December 26, 2020, 2:21pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/4 "2020-12-26T14:21:47Z")

</div>

What do you mean by “pulling” the value??

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [December 26, 2020, 2:40pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/5 "2020-12-26T14:40:30Z")

</div>

just delete it from firebase and it will be updated in thunkable

---

<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 26, 2020, 6:21pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/6 "2020-12-26T18:21:34Z")

</div>

> [@Bibaswan](#):
>
> But how do i display this deleted value in thunkable??

Can you say more about this? You can store the value in a variable before deleting it. And then display the value of the variable.

---

<div class="post-metadata">

**Author:** ![Bibaswan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bibaswan/32/92447_2.png) [@Bibaswan](https://community.thunkable.com/u/Bibaswan)\
**Post date:** [December 27, 2020, 12:52pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/7 "2020-12-27T12:52:09Z")

</div>

But that’s my problem!!! The rows in the data viewer list are not getting updated!!

---

<div class="post-metadata">

**Author:** ![Bibaswan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bibaswan/32/92447_2.png) [@Bibaswan](https://community.thunkable.com/u/Bibaswan)\
**Post date:** [December 27, 2020, 12:53pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/8 "2020-12-27T12:53:33Z")

</div>

I think your advice might work…can u just show it so it’ll be much more clear??

---

<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 27, 2020, 1:26pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/9 "2020-12-27T13:26:14Z")

</div>

If your rows aren’t being updated you likely didn’t create the logic to do so.

Unless you are using listeners to tell the app to update your listviewer it won’t happen automatically

---

<div class="post-metadata">

**Author:** ![Bibaswan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bibaswan/32/92447_2.png) [@Bibaswan](https://community.thunkable.com/u/Bibaswan)\
**Post date:** [December 27, 2020, 1:51pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/10 "2020-12-27T13:51:05Z")

</div>

It isn’t a list viewer…it is a data viewer list which works a bit differently from list viewers… anyway how do I use listeners to tell the app to update the rows (data viewer list) ??

---

<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 27, 2020, 2:33pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/11 "2020-12-27T14:33:37Z")

</div>

Either way (list or dataviewer) you’ll need to inform the app to update. You can do this with a listener block.

Set the listener. Then When the listener notices a change, use code to update your data source for your data viewer.

---

<div class="post-metadata">

**Author:** ![Bibaswan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bibaswan/32/92447_2.png) [@Bibaswan](https://community.thunkable.com/u/Bibaswan)\
**Post date:** [December 28, 2020, 1:21pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/12 "2020-12-28T13:21:24Z")

</div>

Can U show me code for that as I’m new to thunkable??

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 28, 2020, 1:33pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/13 "2020-12-28T13:33:01Z")

</div>

Data viewer list does not have a way to directly connect to a Firebase database.

Am I missing something here?

---

<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 28, 2020, 1:49pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/14 "2020-12-28T13:49:22Z")

</div>

Where there is a will, there is a way

I would set up a real-time listener on the node containing the changing data.

When a change is observed the listener would fire a function to clear and repopulate the local data viewer.

---

<div class="post-metadata">

**Author:** ![Bibaswan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bibaswan/32/92447_2.png) [@Bibaswan](https://community.thunkable.com/u/Bibaswan)\
**Post date:** [January 2, 2021, 1:37pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/15 "2021-01-02T13:37:30Z")

</div>

Please show a screenshot of this code…

---

<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, 12:19pm UTC](https://community.thunkable.com/t/how-to-display-the-deleted-value-from-firebase-to-thunkable/1041766/16 "2024-11-08T12:19:23Z")

</div>


