I have a database containing journalists and newspapers that includes a many to many relationship between contacts and companies.
In my current situation I have the field ‘ROLE::Job Title’ in the join table that allows me to have a job title for each contact relating to each company, but this is not linked to the company and if the company is changed the job title doesn't change with it but stays as is.
This does not fulfil what I’m looking to achieve, as I would like this ‘Job Title’ field to be linked to the currently selected company, so that when the company is changed I am able to redefine the job title - and - should I reselect the previous company, then the job title for that company would still be stored and hence reappear.
I therefore need a way to store a ‘job title’ field for each Company a contact works for which will stay in the system even when the Company is deselected – a sorted of ‘linked field’ that relates to a particular contact AND company.
This is necessary as a contact may work for a company, then leave, and at a later date start working for them again. Also by having the ‘job title’ linked to the company, should an office worker/ database user change the company, there is not the danger of the job title field being left unchanged and hence incorrect for the newly selected company.
I’m not sure this can be achieved with the current table structure in which the ‘job title’ field is in the join table (ROLE) and may need an additional table to hold all the ‘job titles’ for each company the contact is related too.
I would very much appreciate someone’s help in resolving this issue and have included various images showing the current relationship plus attached the programme I am working on (which has originated from the FIlemaker 14 ‘Contacts’ starter solution) - see right-hand side of 'contact details' page for this portal.
The images are:
- Field layout for Companies Portal showing inspector for Company Name field
- Field layout for Companies Portal showing inspector for Job Title field
- Relationship graph showing CONTACT - contact_ROLE relationship
- Relationship graph showing contact_ROLE - contact_role_COMPANY relationship
- Value List for Company
Contacts 0003.fmp12.zip 2.3 MB