# Data Viewer List from Firebase

**URL:** <https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, lists, data-viewer\
**Created:** [October 27, 2021, 6:10pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562 "2021-10-27T18:10:29Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [October 27, 2021, 6:10pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/1 "2021-10-27T18:10:29Z")

</div>

Not sure what I’m missing here to retrieve data and display it in the Data Viewer List.  
I know I’m connected to firebase properly because I can view the data in a normal list viewer.  
My result with the blocks I have below is only grabbing the first item j  
And oddly enough sometimes when I refresh it by dragging it down it will simply copy the row again, but with the same data from row 1.  
` `  
Edit: I forgot to mention I did already set the bindings.  
` `

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

---

<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:** [October 27, 2021, 6:39pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/2 "2021-10-27T18:39:36Z")

</div>

Most likely, the loop is executing too quickly for the create row to complete during each iteration. Try adding a Wait 0 seconds block to the “do” section. If that doesn’t work, try Wait 0.1 seconds. You may instead need to put the Wait block _below_ the create row block.

---

<div class="post-metadata">

**Author:** ![mimostel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mimostel/32/107661_2.png) [@mimostel](https://community.thunkable.com/u/mimostel)\
**Post date:** [October 27, 2021, 8:01pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/3 "2021-10-27T20:01:36Z")

</div>

When I’m using loops or asynchronous blocks, i use also some “waiting” variable to be sure that app have enough time to fulfill my data

 ![screen](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/3/d3a864725f47fb550fc066e1f02bddc5e3e641af.png)

---

<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:** [October 27, 2021, 8:08pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/4 "2021-10-27T20:08:05Z")

</div>

Yes, this is a good way to set it up. Thank you for posting that screenshot.

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [October 27, 2021, 8:24pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/5 "2021-10-27T20:24:58Z")

</div>

I have now done the following still with no resolve.

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

---

<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:** [October 27, 2021, 10:25pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/6 "2021-10-27T22:25:44Z")

</div>

That’s different than what @mimostel posted above which includes a `repeat while block`. Yours just changes the variable value but never checks to see what the value is.

Also, please test your blocks with a more simple create row setup to make sure you can create a row in your spreadsheet (if you haven’t already tried this). In other words, once you get the blocks corrected from above, you might just use a list {1, 2, 3, 4, 5} and set the column 1 value and column 2 values to j. Verify that that works and then go back to using your Firebase values. Because you need to make sure the problem isn’t with accessing your data source in general.

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [October 27, 2021, 11:12pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/7 "2021-10-27T23:12:06Z")

</div>

Thanks for catching that repeat block I missed.  
I have since create an exact clone of his blocks and have found that it’s still not working.  
Upon further investigation I’ve found I can’t connect to my data sources, I have one that is stuck and I can’t delete it, nor can I create new data sources.

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

I’ve opened an intercom chat to see if I can get some help with this.

---

<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:** [October 28, 2021, 2:16am UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/8 "2021-10-28T02:16:17Z")

</div>

You cannot delete a data source connection if it is already used in any of your projects. Check to see the project count is **0** before attempting to delete.

---

<div class="post-metadata">

**Author:** ![alex\_ezacae](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@alex\_ezacae](https://community.thunkable.com/u/alex_ezacae)\
**Post date:** [October 28, 2021, 9:40am UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/9 "2021-10-28T09:40:46Z")

</div>

just as an input I am not using the native connection because I found that it is difficult to control with the wait…  
So now I am always using the webapi (even for auth). I did not play a lot with the realtime db but with firestore. with the use of the response of the web api you do not have the issue of the response.

If you need I can do a quick sample with my db. let me know.  
Alex

---

<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:** [October 28, 2021, 9:50am UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/10 "2021-10-28T09:50:52Z")

</div>

> [@alex\_ezacae](#):
>
> I did not play a lot with the realtime db but with firestore

Realtime DB is easy. Just use the **Database URL** as the URL for the **Web API** and add to it the keys in the database and end it with **.json**.

See this for more details

> [@\[Solved\] All published Apps stop Working! Urgent help please!](https://community.thunkable.com/t/solved-all-published-apps-stop-working-urgent-help-please/1575666/41):
>
> When you access Firebase using Thunkable you supply API key and Database URL. The API key is used to create either an Auth token or a User token or both. however, these tokens are only required if you set the Rules in Firebase to deny anonymous access but if you allow access without any authentication then you can actually use the Web API component to get data from the database. For Example, I have a test database that I do not use any security in it. See the rules: { "rules": { ".read"…

---

<div class="post-metadata">

**Author:** ![alex\_ezacae](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@alex\_ezacae](https://community.thunkable.com/u/alex_ezacae)\
**Post date:** [October 28, 2021, 10:01am UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/11 "2021-10-28T10:01:03Z")

</div>

Sorry I meant that I worked with realtime db and yes it is easy but I prefer to use the web api.  
Even for the auth because if you want to work with firestore or other component you will need to get a token that the buildin component of thunkable will not give you (it is normal it is not its purpose);

---

<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:** [October 28, 2021, 10:07am UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/12 "2021-10-28T10:07:09Z")

</div>

> [@alex\_ezacae](#):
>
> if you want to work with firestore or other component you will need to get a token

I work with `Firestore` but I set the rules **.read** to true so I do not need to use a token and that fits the requirement of my app and makes retrieving documents from `Firestore` easy.

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [October 28, 2021, 2:46pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/13 "2021-10-28T14:46:11Z")

</div>

I was not aware of that, thank you for that info. I’m showing there’s 1 project, but when I click the link it is blank? Perhaps I deleted that project in the past but the data source doesn’t recognize it and won’t disconnect?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/2/020dad9d1cc27adc09b5cc7f9c2e1a420a2a3eae.png)

---

<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:** [October 28, 2021, 2:49pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/14 "2021-10-28T14:49:06Z")

</div>

Yes, if you deleted a project, the connection will not be removed automatically. You need to get in touch with a Thunkable staff to remove the connection for you.

---

<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:14pm UTC](https://community.thunkable.com/t/data-viewer-list-from-firebase/1584562/15 "2024-11-08T13:14:38Z")

</div>


