A very basic question re. Repeating Group

Dear folks,

All I want to do is to show “HELLO” as a plain text in each row of the repeating group.

Why can’t be done in this way ?

The “Hello” is static and input manually, so I skipped the Data Source as I don’t have one.

screenshot 1 is the editor page; screenshot 2 is the preview page.

Should I use or must I use Custom States for this occasion ?

Thanks in advance,

Repeating Groups are simply – and only – a way of visualizing the elements in a list. If you create a list of n "HELLO"s, your repeating group will visualize them for you.

1 Like

am I not creating a list of “HELLO” s by manually input in the row 1 ?

If I create a list of HELLOs, should it be in the Custom States or should it be in the Database generated as through a Data Type ?

No. No you are not.

A list is a list. (It’s just a one-dimensional array.) Of course, you can’t create a list of n of the same values in vanilla Bubble easily.

But you could create a list of n numbers via any number of means (Toolbox’s List of Numbers element, List Shifter, Floppy’s “Create Numeric List” action, etc.) and then use that list of numbers as the source for your RG and then, in the RG’s cell, just have a text that says “HELLO”. But… WHY? (Don’t tell me the answer because I don’t desire to know. The question is hypothetical.)

2 Likes

Anyone else can point me to the right direction ?

I’m still confused. LOL

Thanks

2 Likes

I’ll try :slight_smile: before Keith implodes :slight_smile:

Repeating Groups display “Lists”. (And won’t display anything that isn’t a List). The “Data source” for a repeating group must be a List. Otherwise it just won’t work as you have found out.

The word “hello” is not a list. Any single thing is not a List. It’s a single thing. A single image, a single URL - no single thing is a List.

So you need to provide a List as the Datasource to a Repeating Group. If you don’t have a datasource as a List - your repeating group has no list to display.

So to understand how to make lists try reading this https://manual.bubble.io/help-guides/structuring-an-application/data-structure

Stick with it - you’ll get there :slight_smile:

5 Likes

An RG is for holding (and usually displaying) a list of data…

If there’s no data defined in the initial DataSource (or sent to the RG in a display list action) then it won’t display anything, regardless of what you put inside each cell… as each cell refers to one item in the list of data…

If there is no data, then there are no cells, so nothing inside the cells will be displayed…

3 Likes

@keith almost self-destructed after seeing
HELLO
HELLO
HELLO
HELLO

4 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.