Forum Discussion

AmberAnderson's avatar
AmberAnderson
Qrew Trainee
4 years ago

Lookup from Child Table

Good Day!

I have 4 tables that talk to each other. 

Project Table Will update the Supervisor that manages the Account. 
  • This filters down and updates our Project Session Table with that supervisor name
  • This filters down to Employee Assignment Table with that supervisors name.

The Employee Table houses all the Employees Names which is used when adding an assignment.

I need to find a way to copy any supervisor changes into the Employee Table.

Where I am stuck is that the Project Table is where the Supervisor would be updated.
But I need to pull the supervisor name from any active assignment the Employee has and add it to a Employee table field that is a List Users field. 
If the supervisor is removed, then it should remove that supervisors name from the List Users field on the employee record. 

 Any help is appreciated :)



------------------------------
Amber Anderson
------------------------------
  • No problem,
    You have the Supervisor Userid on the Employee Assignments record.

    Make a text formula text field called [Supervisor in Text format])

    Go to the relationships and make a combined text summary field of that field up to Employees.

    Make a formula userlist like this with as many parts as you like. 

    var text AllSups = ToText([Combined Text Supervisor in text format]);
    var User SuperOne = ToUser(Trim(Part($AllSups,1, ";")));
    var User SuperTwo = ToUser(Trim(Part($AllSups,2, ";")));
    var User SuperThree = ToUser(Trim(Part($AllSups,3, ";")));

    ToUserList($SuperOne, $SuperTwo, $SuperThree)

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • AmberAnderson's avatar
      AmberAnderson
      Qrew Trainee
      Thank you so much Mark! That worked beautifully!

      ------------------------------
      Amber Anderson
      ------------------------------