Repeating Group - Items Repeating?

Good morning all,

Bubble newbie here, trying to figure out what I am doing wrong. Basically, I have a repeating group built on a page where I am trying to match up the Current User Name with the Booking Table name to display a history of bookings/rentals.

But rather than just showing the one item that the current user booked, it is repeating the same item multiple times, based on how many items are in the data list. Anyone able to help and see what I did wrong?

You have a text element, in which you’re telling it to search for Bookings, and then display each item’s name.

(that, obviously, will be a list of texts- and by default, list of texts are displayed separated with a comma and a space, unless you format them in some other way, using Format As on the list).

So, it’s displaying exactly what you’re telling it to display (of course it is, what else could it do?)

I assume, that what you actually want to be doing here is displaying only the current cell’s Booking’s name…

Correct?..

In which case, you need to do exactly that - i.e. use the expression Current Cell's Booking's Name in the text box.

Thank you for the quick reply.

Yes, the Current Cells Bookings Name does pull the individual list, but it doesn’t filter out the bookings based on the current user, which is why I was trying to do the Search to match the Renter Name and Current User name.

Unless there is a way to search/filter using the Current Cells option?

Just tried to add a conditional format to hide the element when Renter <> Current User Name, but that didn’t seem to work.

For some reason I can change the text, but I cannot hide the results.

image

Not sure if this is the best way to do it, but it seems to give me what I am looking for. Basically, I set it up to pull the whole list, but made the list invisible on page load. And then using conditional formatting, I conducted the search and for the “true” results, made them visible. If anyone has a better way to do it, more than happy to try.

image
image

The constraint Renter = Ccurrent User's Avatar Name have to be within the repeating group data source which is search for Bokings

Perfect and much more simple. Didn’t even occur to me to do the search in the group itself, rather than every individual text box. Thank you!!

1 Like