# Displaying list of items in a database cell in a repeating group

**URL:** <https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183>\
**Category:** Database\
**Created:** [May 11, 2023, 1:43am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183 "2023-05-11T01:43:21Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![khobbysekyi](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@khobbysekyi](https://forum.bubble.io/u/khobbysekyi)\
**Post date:** [May 11, 2023, 1:43am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/1 "2023-05-11T01:43:21Z")

</div>

I’m developing a voting system using bubble, but I’m stuck.  
I’m having difficulty configuring the database.

This is how the app works: the first page displays all of the events, and when an event is clicked, it displays all of the categories associated with that event. When a category is selected, all of the nominees in that category are displayed for voting.

In light of the foregoing, I must link the event table to the categories table (1-to-many relationship), which I have already done. However, the issue is that all the categories linked to an event in the event table are grouped in one cell and separated by commas, making it challenging to display in a repeating group.

All of the contents in the cell are shown when I show the linked categories in a text element.  
How do I approach it, kindly?

---

<div class="post-metadata">

**Author:** ![ranjit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ranjit/32/254854_2.png) [@ranjit](https://forum.bubble.io/u/ranjit)\
**Post date:** [May 11, 2023, 3:35am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/2 "2023-05-11T03:35:09Z")

</div>

That should be a list of texts since it appears as comma separated values.  
You could simply create another Repeating Group within the cell of this Repeating Group and assign it as type text with this content in it.

Alternatively you could apply the `:formatted as text` operator on this list of texts and format the way it should appear (separate them by another character or a line break, add some rich text formats, etc)

---

<div class="post-metadata">

**Author:** ![khobbysekyi](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@khobbysekyi](https://forum.bubble.io/u/khobbysekyi)\
**Post date:** [May 12, 2023, 12:13am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/3 "2023-05-12T00:13:11Z")

</div>

I did but it still seems not to work

 ![Screenshot](https://us1.discourse-cdn.com/bubble/original/3X/b/c/bc0a402714720e8e261e9103d0cd901b766dee1f.png)

---

<div class="post-metadata">

**Author:** ![ranjit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ranjit/32/254854_2.png) [@ranjit](https://forum.bubble.io/u/ranjit)\
**Post date:** [May 12, 2023, 4:41am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/4 "2023-05-12T04:41:11Z")

</div>

Could you hit inspect element and select that comma separated list and send a screenshot?

---

<div class="post-metadata">

**Author:** ![khobbysekyi](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@khobbysekyi](https://forum.bubble.io/u/khobbysekyi)\
**Post date:** [May 13, 2023, 12:45am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/5 "2023-05-13T00:45:07Z")

</div>

Yeah sure

 ![Screenshot (4)](https://us1.discourse-cdn.com/bubble/original/3X/4/a/4ad79eff8b0eeceba15a0807bc3f76bdca9ef0c8.png)

---

<div class="post-metadata">

**Author:** ![ranjit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ranjit/32/254854_2.png) [@ranjit](https://forum.bubble.io/u/ranjit)\
**Post date:** [May 13, 2023, 4:54am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/6 "2023-05-13T04:54:13Z")

</div>

Hmm, there’s not enough info here.

In case that’s coming in as a single text instead of a list of texts, you could run `:split by` and enter ‘,’ as the character to split by. That will result in a list of texts that you can use as we discussed earlier.

---

<div class="post-metadata">

**Author:** ![khobbysekyi](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@khobbysekyi](https://forum.bubble.io/u/khobbysekyi)\
**Post date:** [May 13, 2023, 1:57pm UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/7 "2023-05-13T13:57:07Z")

</div>

![Screenshot (9)](https://us1.discourse-cdn.com/bubble/original/3X/5/5/553e926fcc7ac1e17c5c3a41df997e17e885b332.png)  
Seem not to work  
 ![Screenshot (10)](https://us1.discourse-cdn.com/bubble/original/3X/0/7/07c59a39be488e99e837e371c84d342cc6c6307c.png)

---

<div class="post-metadata">

**Author:** ![ranjit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ranjit/32/254854_2.png) [@ranjit](https://forum.bubble.io/u/ranjit)\
**Post date:** [May 14, 2023, 4:53am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/8 "2023-05-14T04:53:14Z")

</div>

No, I meant put the `:split by` on the text in your canvas

 ![Screenshot (10)](https://us1.discourse-cdn.com/bubble/original/3X/0/7/07c59a39be488e99e837e371c84d342cc6c6307c.png)  
☝Here

It should look like `:get Q1 from URL :split by(,)`  
Putting this as a RG’s data source will let you display it as an RG list

---

<div class="post-metadata">

**Author:** ![khobbysekyi](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@khobbysekyi](https://forum.bubble.io/u/khobbysekyi)\
**Post date:** [May 14, 2023, 4:14pm UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/9 "2023-05-14T16:14:05Z")

</div>

Sure it worked  
Thanks very much  
How do I do the same for images because am using the same approach but it not working

---

<div class="post-metadata">

**Author:** ![ranjit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ranjit/32/254854_2.png) [@ranjit](https://forum.bubble.io/u/ranjit)\
**Post date:** [May 15, 2023, 5:11am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/10 "2023-05-15T05:11:35Z")

</div>

Same thing  
Get a list of images, then use `:each item's URL :split by (,)`

---

<div class="post-metadata">

**Author:** ![khobbysekyi](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@khobbysekyi](https://forum.bubble.io/u/khobbysekyi)\
**Post date:** [May 16, 2023, 1:34am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/11 "2023-05-16T01:34:10Z")

</div>

Probably am doing something wrong because it is not working

 ![Screenshot (12)](https://us1.discourse-cdn.com/bubble/original/3X/1/3/13de04e3b5738c3c224aae7c2a80c3ce83f4777d.png)  
 ![Screenshot (13)](https://us1.discourse-cdn.com/bubble/original/3X/8/6/864bd40d1826f936987e3239523f07675df213e1.png)  
 ![Screenshot (14)](https://us1.discourse-cdn.com/bubble/original/3X/e/c/ecdfb28572b9aa0a5293e21ef42e1baea2b9ba9d.png)  
 ![Screenshot (15)](https://us1.discourse-cdn.com/bubble/original/3X/1/3/139bcc02df03955601847d5a1f16860e12d257e8.png)

---

<div class="post-metadata">

**Author:** ![ranjit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ranjit/32/254854_2.png) [@ranjit](https://forum.bubble.io/u/ranjit)\
**Post date:** [May 16, 2023, 4:45am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/12 "2023-05-16T04:45:25Z")

</div>

You’re setting the same data source (from the URL params) to the image RGs within all the cells of the main RG - which makes it have the same image.

You should have a list of images on each cell’s thing here

---

<div class="post-metadata">

**Author:** ![khobbysekyi](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@khobbysekyi](https://forum.bubble.io/u/khobbysekyi)\
**Post date:** [May 16, 2023, 9:16am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/13 "2023-05-16T09:16:29Z")

</div>

Have confused  
i set the data source of the image RG to the second ( from the second URL params)  
Please can i share my link so u see what am talking about?

---

<div class="post-metadata">

**Author:** ![ranjit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ranjit/32/254854_2.png) [@ranjit](https://forum.bubble.io/u/ranjit)\
**Post date:** [May 17, 2023, 5:11am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/14 "2023-05-17T05:11:33Z")

</div>

Sure!

---

<div class="post-metadata">

**Author:** ![khobbysekyi](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@khobbysekyi](https://forum.bubble.io/u/khobbysekyi)\
**Post date:** [May 17, 2023, 3:57pm UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/15 "2023-05-17T15:57:27Z")

</div>

> **[Bubble Editor - MyVoteApp](https://bubble.io/page?type=page&name=index&id=myvoteapp&tab=tabs-6&subtab=General)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<div class="post-metadata">

**Author:** ![ranjit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ranjit/32/254854_2.png) [@ranjit](https://forum.bubble.io/u/ranjit)\
**Post date:** [May 18, 2023, 4:00am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/16 "2023-05-18T04:00:22Z")

</div>

seems to have different images when I tested it.  
What I meant was that if you set the image source on each image as the same URL param data, you’ll see the same image on each cell. But looks like you’ve set the image source to be from the current cell’s image which is the right way to go.  
But I then don’t understand why you’re using URL params for the images at all if they are available via the current cells’ image.  
Maybe I didn’t understand your use case here.

---

<div class="post-metadata">

**Author:** ![khobbysekyi](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@khobbysekyi](https://forum.bubble.io/u/khobbysekyi)\
**Post date:** [May 18, 2023, 4:17am UTC](https://forum.bubble.io/t/displaying-list-of-items-in-a-database-cell-in-a-repeating-group/262183/17 "2023-05-18T04:17:32Z")

</div>

I inserted another RG inside the main RG to hold the images, and I set the data source of the second RG to the URL parameter. I then inserted an image element inside the second RG to display the image list using the split feature just like how i did for the list of text.
