Forum Discussion

IvanWeiss's avatar
IvanWeiss
Qrew Captain
5 years ago

Get a field based on the current user

Hello,

I have a table called Team Members which is all of my users in the app.  The key field is the user field.  I use this to keep other fields related to each user and one of them is their Team Name (each individual in our company works on a Team/design studio)

We also have a few people that handle spillover if any team is too busy.  So they float between teams to assist with work.

I am trying to make a dashboard widget to show overdue tasks for a team lead so that they can see all overdue tasks on their team.  I am using Mark's method for the Current User is on a team = 1 flag, but that doesnt work in this case as I am trying to get the "task" if it is on a team.  Not a user.

So what I need in my report is basically the ability to say

If a task team name matches the current user team name show it on this report.

Ideas?

------------------------------
Ivan Weiss
------------------------------
  • :) just cooling off after a hot rollerblade, so back on line.
    If you make a field called [Current User] on tasks, then you can make a relationship back to Team Members and lookup the current User Team Name  and then the filter the report where 

    task team name matches the current user team name

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • IvanWeiss's avatar
      IvanWeiss
      Qrew Captain
      Hmm I think I am missing something.

      I made a field on the Tasks table called Current User as a formula user type.  In the formula I put User()

      I created a relationship to my team members table.  I set the default value to current user.  As part of that relationship I looked up the team name.  I renamed this relationship to Current User Team Member

      I am not sure where I am supposed to be using that Current User field.  I also added a lookup from Tasks to the Project table for the Team Name field.  This way I have the team name for the Project.

      My reports are filtering by:
      Project Team Name is equal to the value in the field Current User Team Name AND 
      Project Team Name is not equal to ""

      With testing it is not working so something is not quite right with the above.

      ------------------------------
      Ivan Weiss
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        It should work. When you look at an example task record what's in fields you are comparing?

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------
  • ChristineWhite's avatar
    ChristineWhite
    Qrew Assistant Captain
    Can you tell me where you found "Mark's method for the Current User is on a team = 1 flag"  I am trying to do something similar

    ------------------------------
    Christine White
    ------------------------------