Listing specific data in the repeating group

I’m creating an app where users can register, this part is ok.

When the User registers he can register Customers, everything is ok too.

Within each registered Customer, the User can add items within each Customer. In this part, when the User creates a certain item for a specific Customer, the data goes to all registered Customers, where it should only appear for the selected Customer.

DEMO: Bubble | No-code apps (email: cliente1@teste.com / pass:cliente1)

1 Like

When the user creates a new item, ensure that the item is being associated with the correct customer.

In the workflow that saves the item, make sure you are setting the “Customer” field of the item to the currently selected customer.

1 Like

In your repeating group, you will add a constraint to the data source saying Created by = Current User when you do a search for.

1 Like

I believe that at this point, everything is ok, because when you log in with a certain user in the system, only the data that he registered appears. The problem is after this user creates their customers and within each customer when I am entering the data they appear for the entire list of registered customers. I believe the answer above is closer to solving it. Anyway, thank you.

1 Like

In this case, the workflow that I will edit is within the text that I add, where will the data appear within the Repeating Group?

I´m not sure if I understand your problem correctly.
But when the User adds an item for a specific Customer, make sure that the workflow saving the item includes a step to set the “Customer” field on the item to the currently selected Customer. This way, each item is explicitly linked to the Customer it belongs to, rather than being associated with all Customers.

In the Repeating Group where you’re displaying the items, make sure to add a constraint to the data source to filter the items based on the selected Customer.

For example, if your Repeating Group is showing a list of items, the data source should have a constraint like: Customer = Current Page Customer or Customer = Selected Customer.

This ensures that only the items associated with the selected Customer are displayed in the list.

If you’re using privacy rules in Bubble, double-check that your rules are set up to prevent users from seeing items that don’t belong to their customers.

1 Like

That’s exactly it, I’m trying to apply your guidelines, thank you very much.

Hello, very good, thank you. I will send images of the system for you to analyze.

User panel:

Workflow Add Client:

Workflow Add ItemClient:

List Page ItensClients:

Data base:

LIVE DEMO: Bubble | No-code apps
Users: client1@test.com (pass: client1) / client2@test.com (pass: client2)

You have no privacy rules for your clients or your items clients.

1 Like

OK, I’ll look into the permissions, I’m very new to bubble.

1 Like