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.
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.
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.