I’m new to Bubble and strugging with nested RGs.
I have two tables “Category” and “Service” - the records in “Service” have a field of type Category called “parent_category”.
I have a test page with nested RGs.
The first has Type of Content = Category and Date Source = Search for Categorys and this shows all records from the Category table.
Within this is a nested RG with the Type of Content = Service and Data Source = Search for Services with a constraint “parent_category = Current cell’s Category”.
This is the output which is as expected:
My question is:
How can I stop the cell containing “Category: Pest, Plant and Lawn Health Management” section from being displayed? This category has no related service records and I do not want it to be displayed.
I understand the correct way to do this is to prevent this Category from being returned by the query used by the first RG but I do not know how to only deliver the Catagorys which have one or more related Service records.
This is driving me mad. Any help would be much appreciated. Thanks.