Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Have supevisor populate a field based on the department


This topic is 7115 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm not the greatest with relationships so if anyone can help I'd greatly appreciate it!

WHAT: We have a personnel database with several tables. We would like it when a department an employee is assigned to is selected from a drop down list, the 'supervisor' field is populated with the supervisor.

How can this be done? I've already created a 'supervisor' table. The only problem I can see is that all the employees assignments are related to another table called 'assignment history'.

Thanks in advance!

Posted

You don't need a supervisor table for this, but a Department table may be useful. Having one, you can populate it with all the department names along with who the supervisor is (I'm assuming one supervisor per department.) Then relate between Personnel and Department by Department Name (or ID). With this relationship, you can show the supervisor for the employee's current Department. If you're storing the supervisor's ID in the Department table instead of the name, then you'll need another TO of Personnel linked to Department by Department::SupervisorID = Personnel 2::EmployeeID. Use this TO to show the Supervisor's name on the Personnel record.

It's not clear what your Assignment History table tracks, how it's related, or whether you need it to store the supervisor's then name.

Posted

thanks guys!

basically the employees assignments are kept in a table called "Employment History". In the entry layout it is accessed via a portal (so we can have a running history of where they have been assigned).

On most other layouts a calculation is used to show where their most current assignment is.

Would a calculation be better to show the supervisor then?

Posted

A calc is not the answer. If you wish the Employment History to remember the Employee's supervisor at the time of the assignment, then use a text field with an auto-entered lookup to pull the supervisor's name from the Department table (or that Personnel 2 TO I described above.)

  • 2 weeks later...
Posted

Ender how do you do an auto-entered lookup (I've never done one before)?

I think that might be the answer...basically all the departments are in the (currently named) "supervisor" table along with the supervisor name.

In the "main" table there is a portal to the "assignment" table where a running history of all the departments the employee was assigned to.

So would a auto-entered lookup work in this instance?

This topic is 7115 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.