Filtering task list by specific user as admin

New to Adalo: For my Training App I created a task list which contains workouts assigned to specific users (one task one user). I managed to use the Edit Tasks Screen from the Assignement Template to add user specific tasks to the task list. To be able to edit and/or delete them I need to create a screen that lets me first: select a specific user, second: displays the assigned tasks of the selected user and third allows to pick and edit the users tasks from the list. I want to do this as Coach/Admin. I ve been trying to find a solution for a few hours but i have no idea if this is possible and how. Gratefull for suggestions ; )

Hi ULY !

First: In case task are unique and custom for each user, your one to one is okay but to a better performance should be better to have “One User Many Task” in this way you can handle lists with every task for each user in his own profile.

Second: in order to have access as admin/coach, i think you have (in case you have not) create a boolean in Users collection which say ADMIN and activate it in your user to allow you filter content or actions and make only possible to take admin actions by your user.

Third: To edit users tasks nor delete it, create an action, icon or button in to the task rectangle list which sent you to another screen (then the system will connect the data to the new screen). set in the action a filter which sais “sometime happens > logged in user > Admin > is active”. That allow only you to go to editing screen. In case you set an icon or button, set also visibility to “sometimes visible > logged in user > admin > is active”.

Forth: In to the new screen, create a form for Data Collection TASK (or whatever you call it) and the form do “Update Current TASK”.

The rest is just customize your form.

Hope it helps you.
Regards
Jare Ramirez

Hi tanks a lot for the instruction, i have everything in place as suggested and created a button in the task rectangle list that connects to a screen called update tasks. The button sends “current task” to that screen, but if I insert a form relating to data collection tasks, there is no option to select “update current task” for the form action button there is “create task” set in the action list (and i cant delete it) I tried to add another button in the field but i cant select “update current task” somehow it seems the “current task” data is not available in the update task screen. Any idea?

One more remark, when I make the form and link it to the data collection tasks, the only option in “what do you want the form to do?” is “create new task” there is no possibility to choose anything else, maybe this makes it easier to understand the problem

Hi!

Can you show me a print about where you place the action to go to the new screen?

If only see “Create”, that means you did not link the list to the new screen correctly.

Hi,
I solved it by correctly linking the list to the new sceen. I somehow messed it up by using redundant names. Your comment helped to keep searching and finay solve it. Thanks for offering futher help. I really like this community. Is there a proper way to give credits?

1 Like

That’s Super !!!

I don’t know what you mean with “give credits”, just like my comments and DM me in case you need something related.

Otherwise i recommend you to post again like you did it because your doubts can also help other users.

Regards!!
Jare Ramirez