hi bubblers…
im trying to make a task manager platform and have now maked some databases… what i want to try now is to make a syncronations between my frontend customer database and frontend task database…
i already have maked a repeat group there shows every task that the admin user creates in the frontend… and i also have a repeat group there shows a list of customer ther user have created…
but now when i click in to the overview of the customer i have a tab called tasks… there i want to make a list of tasks assigned to this specific customer…
so i have maked a field in my customer databse called tasks with the attribute type of my task databse…
but now im stuck… and cant figure what ype on content to use to get these data specified in a repeatgroup
im trying to use definition: Parent group's task's customuer's task's title to get the data of the title of my task there is assigned to the customer
but that doesnt give me anything
hey @christian_bargmann
so you have a Tasks datatype and Customers datatype, and each Customer can have a list of Tasks assigned to them. Your repeating group’s datasource should be current user's tasks, and the title expression should be current cell's task's title.
I don’t see why you’re circling back to customer when trying to get the task name, doesn’t the RG datasource take care of that?
just to understand what you are writing correctly… you say that the RQ’s datasource should be current user's task and i assume the type of content then should be user but the databse of user doesnt have a a field called task… that is my customer databse having that…
but when i do that the RQ’s have no info about about the customer the tasks are assigned to… it only should list the task assigned to them… right?
will say im still pretty new in using bubble… and are halfway throw its academy… so im still learning… but that is just the logic for me
based on this, I assumed that you have a list of tasks as an attribute in your users database, but now I understand you have another database called customers. Then you must be referencing the current customer somewhere in the page to display their data. In that case, your RG should be of type task and the source should be [group that references current customer]'s customer's tasks. And each cell’s task should be current cell's task's title
@hanan1
thank you for the setup you sent… i have tried and play around with it… and what i still doesnt get is how do i define that this specific task is assigned to this customer…
in your setup you have maked your self as customer… but what if you maked me as customer to… wouldnt it show the excact same task in my view then.
so to scale it down… i have you as customer and i want to do Mentoring Appointments for you… and i have me as customer i want to do CMS dashboard sitemap for…
my issue is that when i click in to your customer view and go to show cases/task both CMS dashboard sitemap and Mentoring Appointments is showed as task in you customer view… but it should only show Mentoring Appointments there is the task i will do for you…
and when you then click in to my customer view it should only show CMS dashboard sitemap there is the task i will do me that customer
I think I still didn’t explain it well then. In my setup, hanan is the customer, not the current user. So another user (Admin maybe) is viewing the task list for hanan. And that is how the page is set up. Imagine that you are working in an Admin dashboard and navigated to a single customer’s page to view their tasks or appointments or whatever type of data connected to them, this is what my setup explains.
If you have one datatype that can show different rows based on current user role, then you need a ‘role’ attribute in your user type. The view of page depends on user role.