Forum Discussion
IvanWeiss
6 years agoQrew Captain
Adam,
I can see the Team name of the Assigned To user via lookups. How do I gain access to the Team name of the current logged in user dynamically? That is the part I cannot sort out
------------------------------
Ivan Weiss
------------------------------
I can see the Team name of the Assigned To user via lookups. How do I gain access to the Team name of the current logged in user dynamically? That is the part I cannot sort out
------------------------------
Ivan Weiss
------------------------------
MarkShnier__You
Qrew Legend
6 years agoIvan, do you have a table of users where the Key field is User? If you have that then there is a way to do what you want.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------
- IvanWeiss6 years agoQrew CaptainYes my "Team Members" table has the user as the key field. It is basically an Employees table
------------------------------
Ivan Weiss
------------------------------- MarkShnier__You6 years ago
Qrew Legend
I will assume that you have a table of Teams and that One Team has many Team Members. (i was confused as to your reference to Departments as that seemed to be not relevant to anything.)
Make a checkbox formula field called [Current user is Team Member (=1)]
The formula will be if(User() = [userid],1)
Summarize the maximum of this field up to the Teams table. Call it [Current user is Team Member (=1)]. It will now equal 1 if the current user is on that Team.
Now lookup [Current user is Team Member (=1)] down from Teams down to Tasks. Now all the tasks are identified as to if they belong to the Team that the Team member is on.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------- IvanWeiss6 years agoQrew CaptainSlightly different structure Mark.
I have a Departments Table. It lists both the Team names and our internal departments. I do not explicitly have the Teams in a separate table. There is a column in this table that identifies each record as either a department or a team, but they are housed in one place.
But I think I follow the logic and can apply it to be the same method. Only question is if multiple people are logged into the system at one time wont there be multiple #1's in the table? Or is it pulling somehow locally on each users machine?
And also my tasks are not connected to my Departments table. The Tasks are related to the team members table.
So the structure goes:
- A department has many team members (This relationship is called Related Department)
- A department has many team members (This relationship is called Related Teams)
- A team member has many tasks.
The department table has both internal departments as well as Teams so it has two relationships.
Does that make sense? perhaps that was built wrong and I need to split off departments and teams, but it still doesnt flow down to tasks. Unless I make another relationship that is automatically set based on who is assigned to the task.
------------------------------
Ivan Weiss
------------------------------