Hi everyone
I’m quite new to Bubble and I am trying to figure out how to filter a data source so that only the Customers who book the “Job” can view their own bookings whilst the “Employee” who’s assigned to that job, can only see the jobs that they’re assigned to.
Using the Table function, I have managed to make it so that Customers can only see the bookings that they themselves have booked, but I can’t do the same for Employees seeing jobs allocated to them.
Please could someone advise, or maybe point me in the right direction? If any further info is needed i’ll try to provide it.
Thank you!
Probably need to incorporate data structure into this.
One the Job data type should have a field for Assigned Employee and save the employee assigned to that field.
Then on the repeating group (or table element) the search should use the constraint, assigned employee equals current user (and that should be done conditionally based on the current users user type being employee)
Good morning, thanks for the response.
I have tried the above & I can’t seem to get any of the bookings to show for any of the employee accounts. Am I missing something obvious? Any ideas?
I’ve attached some screenshots below so you can see what I’ve done and spot any potential errors.
Please could you advise?