# How to put firebase key in listviewer?

**URL:** <https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, listview\
**Created:** [November 26, 2018, 2:53pm UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150 "2018-11-26T14:53:07Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_GD\_ETJ](https://avatars.discourse-cdn.com/v4/letter/_/838e76/32.png) [@\_GD\_ETJ](https://community.thunkable.com/u/_GD_ETJ)\
**Post date:** [November 26, 2018, 2:53pm UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/1 "2018-11-26T14:53:07Z")

</div>

I want to get all the firebase keys and put it in a list viewer like  
 ![help](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/a/8a97abdd455ff3f3866e4eda1031a097256105b4.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 26, 2018, 4:07pm UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/2 "2018-11-26T16:07:32Z")

</div>

Get the data of the entire parent node (maptest) and then use the blocks for working with text and a list to select the necessary data from them.

---

<div class="post-metadata">

**Author:** ![\_GD\_ETJ](https://avatars.discourse-cdn.com/v4/letter/_/838e76/32.png) [@\_GD\_ETJ](https://community.thunkable.com/u/_GD_ETJ)\
**Post date:** [November 27, 2018, 2:21am UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/3 "2018-11-27T02:21:26Z")

</div>

could you help me with it?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 27, 2018, 9:04am UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/4 "2018-11-27T09:04:55Z")

</div>

After accessing the test node (in your case, replace test with /) we have the data

{  
“data”:“data”,  
“data1”:“data1”,  
“data2”:“data2”,  
“data3”:“data3”  
}

Remove from the resulting string { and } and ", create a list of pairs from which we get the key value. Label1 is used for debugging.

 ![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/b/cb8918ad3846cf72504990a25698fc8be5fbf4fa.png)

---

<div class="post-metadata">

**Author:** ![\_GD\_ETJ](https://avatars.discourse-cdn.com/v4/letter/_/838e76/32.png) [@\_GD\_ETJ](https://community.thunkable.com/u/_GD_ETJ)\
**Post date:** [November 27, 2018, 2:58pm UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/5 "2018-11-27T14:58:53Z")

</div>

it seems like the data i needed has changed though

i want only the first keys to be shown

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

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 27, 2018, 6:31pm UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/6 "2018-11-27T18:31:47Z")

</div>

My example does not work for your keys?

---

<div class="post-metadata">

**Author:** ![\_GD\_ETJ](https://avatars.discourse-cdn.com/v4/letter/_/838e76/32.png) [@\_GD\_ETJ](https://community.thunkable.com/u/_GD_ETJ)\
**Post date:** [November 28, 2018, 1:59am UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/7 "2018-11-28T01:59:57Z")

</div>

sir, the example you gave me shows all keys

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 28, 2018, 7:05am UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/8 "2018-11-28T07:05:53Z")

</div>

In my example, an approach to get data is shown. It uses text blocks and list blocks. See the JSON data format that your database returns. After that, change my example so that it gives you the nodes you need.

---

<div class="post-metadata">

**Author:** ![\_GD\_ETJ](https://avatars.discourse-cdn.com/v4/letter/_/838e76/32.png) [@\_GD\_ETJ](https://community.thunkable.com/u/_GD_ETJ)\
**Post date:** [November 28, 2018, 3:02pm UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/9 "2018-11-28T15:02:41Z")

</div>

pls help me as i am starting with thunkable sir

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 28, 2018, 6:35pm UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/10 "2018-11-28T18:35:08Z")

</div>

I will help you if you send me JSON data in text form.

---

<div class="post-metadata">

**Author:** ![aide2001](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aide2001/32/662_2.png) [@aide2001](https://community.thunkable.com/u/aide2001)\
**Post date:** [November 28, 2018, 7:56pm UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/11 "2018-11-28T19:56:35Z")

</div>

I too am strugglying with the firebase database and updating anything.  
My rules are as follows  
{  
“rules”:{  
“Listings”: {".read": “true”,

```
 "Users": {
  "$uid": {
    ".read": "$uid === auth.uid",
    ".write": "$uid === auth.uid",
  				}     
  				}
						}	
				}

```

}

But whenever a user is signed in nothing will get updated as it says permission denied.  
My blocks are as follows  
in realtime save

KEY = Users

VALUE TEXT 1  
VALUE TEXT 2  
ETC  
any help on this would be greatly appreciated as its been driving me mad for 4 days now

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 29, 2018, 9:19am UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/12 "2018-11-29T09:19:03Z")

</div>

I added a JSON screen to the project, where two options are given for filling the list with data from JSON (Firebase).

[https://x.thunkable.com/projects/5be813b36245ad2916513266/project/properties/designer/](https://x.thunkable.com/projects/5be813b36245ad2916513266/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![\_GD\_ETJ](https://avatars.discourse-cdn.com/v4/letter/_/838e76/32.png) [@\_GD\_ETJ](https://community.thunkable.com/u/_GD_ETJ)\
**Post date:** [November 30, 2018, 4:30am UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/13 "2018-11-30T04:30:56Z")

</div>

i dont understand what you did sir

i only want the first keys to be shown not the whole data

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 30, 2018, 7:35am UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/14 "2018-11-30T07:35:48Z")

</div>

I show only general examples of working with data because you do not write what data is originally and what data from them you need to get at the end. If you need certain data from the entire set, then to get them, use a filter.

---

<div class="post-metadata">

**Author:** ![luk2009](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@luk2009](https://community.thunkable.com/u/luk2009)\
**Post date:** [December 1, 2018, 8:31am UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/15 "2018-12-01T08:31:54Z")

</div>

[https://www.youtube.com/playlist?list=PL\_jqLzL9gwRFaIo11koCXzVave0fLTt\_L](https://www.youtube.com/playlist?list=PL_jqLzL9gwRFaIo11koCXzVave0fLTt_L)

---

<div class="post-metadata">

**Author:** ![myandriod](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@myandriod](https://community.thunkable.com/u/myandriod)\
**Post date:** [July 2, 2019, 12:02pm UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/16 "2019-07-02T12:02:50Z")

</div>

Hi @actech ,

Thanks, your blocks worked to list keys perfectly.

Similarly could you please let know how to list all the values instead of keys for the same example?

---

<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, 11:52am UTC](https://community.thunkable.com/t/how-to-put-firebase-key-in-listviewer/58150/17 "2024-11-08T11:52:32Z")

</div>


