I am having problems displaying data from database using a repeating group. I am displaying a column from a database type. I have added a condition “Current user’s System Name is not Current cell’s Rules and reg’s company name” which displays the information from the database of the user connected to the company name. But while displaying this repeating group, it shows blank for every company name not equal to the user’s company name and does not skip it. What can I do so that it does not show a blank in the repeating group and just skips it.
Hi there, @abbasmandasorwala4… it would be ideal if you could share some screenshots, but what do you mean when you say you have added a condition? Are you talking about a visibility condition on an element within the repeating group? If so, that’s not the way to go, and instead, you want to add a constraint to the repeating group’s data source to show only the relevant data in the repeating group.
My apologies if I missed the mark there, but it’s hard to know what you mean without being able to see what you have actually done. So, again, throw some screenshots out here if my reply isn’t relevant, and I’m guessing someone will be able to help you figure out what’s going on.
Best…
Mike
Hi @mikeloc, sorry for the confusion. I have added the condition to the text box inside the repeating group. I have attached a screenshot down below. Please let me know if you need more clarity.
this is the screenshot of what the condition I gave
This is what it looks when I preview it (I want to remove the blank blocks)
Yup, as I suspected, you are doing it wrong. As I said, you don’t use a condition on an element in the repeating group. You need to add a constraint to the repeating group’s data source so only the relevant data is shown.
Sorry to disturb you, but how do I add a constraint to the repeating group’s data source? I didn’t understand it.
Well, first, if you don’t know what a repeating group’s data source is or how to add constraints to it, I strongly suggest you take a big step back and learn the basics of Bubble or you are really going to struggle to get up what is a pretty steep learning curve.
The above being said, click on the repeating group, look on the Appearance tab, click on the repeating group’s data source, and add the appropriate constraint(s) to the data source.
Hi, got confused between something but understood what you mean now . The problem has been fixed .
Thanks a lot for your help.