# How to get data from firebase and list in listviewer?

**URL:** https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881
**Category:** Questions about Thunkable X
**Tags:** firebase, beginner, help
**Created:** [June 2, 2021, 4:08pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881 "2021-06-02T16:08:22Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![kmsparkavi06udyfc](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@kmsparkavi06udyfc](https://community.thunkable.com/u/kmsparkavi06udyfc)
#### Post date: [June 2, 2021, 4:08pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/1 "2021-06-02T16:08:22Z")

</div>

i am a newbie to this platform…

so i dont know how to get data from firebase to my app…

this is my firebase structure

![OnPaste.20210602-213538](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/3/b38dc107ccc6e864e54e0947661817d4661e64ea.png)

in the picture i want to display all my categories eg: Ice Cream , milk, etc… in my listview

 ![OnPaste.20210602-213758](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/9/39b746f7efed316fbb59f98c0b5ce25ff48d2b4d.png)

please help me it is an urget!!!

---

<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: [June 2, 2021, 4:50pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/2 "2021-06-02T16:50:14Z")

</div>

Welcome to Thunkable!

> [@kmsparkavi06udyfc](#):
>
> please help me it is an urget!!!

Please know that just because you’re in a hurry to complete something doesn’t mean that anyone here needs to rush to help you. Most of us are users/developers just like you and are volunteering our time to help each other when we can.

If you need more immediate help, purchase a Pro license of Thunkable and contact Support.

You may want to start by searching the forums for your topic. For example, I found these:

> [@How to make a To Do App and store it on Firebase (Firebase to List viewer)](https://community.thunkable.com/t/how-to-make-a-to-do-app-and-store-it-on-firebase-firebase-to-list-viewer/503271):
>
> Good morning thunkers! I wanted to share an app I recently completed! This can be used to share ideas between teams working on the same tasks. First: Here is a link to my app! Please let me know how we can make it better! [https://x.thunkable.com/copy/4eab8e5a3b8c92dcdfaaf7ee0bb05b4c](https://x.thunkable.com/copy/4eab8e5a3b8c92dcdfaaf7ee0bb05b4c) I am already thinking of using dynamic columns/rows for a ‘prettier’ feel to the entire thing plus specifically the ability then to cross out a task prior to deleting it from the list altogether. First: I found t…

> [@Retrieve firebase data in list viewer](https://community.thunkable.com/t/retrieve-firebase-data-in-list-viewer/1018633):
>
> I can’t retrieve my firebase data in a list view. Here is my code along with the JSON structure. Note that the variable app text is my global variable that represents my input data. [JSON] [codeBlock] This is how I input my data to firebase: [InputData]

---

<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: [June 2, 2021, 4:51pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/3 "2021-06-02T16:51:02Z")

</div>

Are you using cloud variables to connect to your database or the Firebase blocks?

The solution will depend on how you retrieve your data from your database.

---

<div class="post-metadata">

### Author: ![kmsparkavi06udyfc](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@kmsparkavi06udyfc](https://community.thunkable.com/u/kmsparkavi06udyfc)
#### Post date: [June 2, 2021, 6:25pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/4 "2021-06-02T18:25:50Z")

</div>

no i am using realtime db

---

<div class="post-metadata">

### Author: ![kmsparkavi06udyfc](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@kmsparkavi06udyfc](https://community.thunkable.com/u/kmsparkavi06udyfc)
#### Post date: [June 2, 2021, 6:26pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/5 "2021-06-02T18:26:59Z")

</div>

sir,

i saw that but i did not get the right answer

---

<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: [June 2, 2021, 6:56pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/6 "2021-06-02T18:56:24Z")

</div>

write the following coding (or something similar) which should give you the items in the list (Ice Cream, Milk) in the list viewer.

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

---

<div class="post-metadata">

### Author: ![kmsparkavi06udyfc](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@kmsparkavi06udyfc](https://community.thunkable.com/u/kmsparkavi06udyfc)
#### Post date: [June 2, 2021, 7:01pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/7 "2021-06-02T19:01:34Z")

</div>

will check and say

---

<div class="post-metadata">

### Author: ![kmsparkavi06udyfc](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@kmsparkavi06udyfc](https://community.thunkable.com/u/kmsparkavi06udyfc)
#### Post date: [June 2, 2021, 7:13pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/8 "2021-06-02T19:13:01Z")

</div>

I have doubt that how i can get the value which is clicked on the listviewer and get the value

---

<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: [June 2, 2021, 7:54pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/9 "2021-06-02T19:54:23Z")

</div>

You use the green “item” block for that:

> **[List Viewer](https://docs.thunkable.com/list-viewer#select-item-from-a-list-viewer)**
>
> The List Viewer component allows you to add, view and click on items in a list.

---

<div class="post-metadata">

### Author: ![kmsparkavi06udyfc](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@kmsparkavi06udyfc](https://community.thunkable.com/u/kmsparkavi06udyfc)
#### Post date: [June 2, 2021, 7:58pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/11 "2021-06-02T19:58:35Z")

</div>

Thanks i got the solution thaks @tatiang and @muneer for you Solutions

---

<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, 1:22pm UTC](https://community.thunkable.com/t/how-to-get-data-from-firebase-and-list-in-listviewer/1321881/12 "2024-11-08T13:22:07Z")

</div>


