Newbies James Pearson Posted October 1, 2010 Newbies Posted October 1, 2010 I have a report layout which is based on a table QuoteLines. In the header I want to print the primary contact (and other details about the contact) for the 'job', but each job can have multiple contacts (only one has the field 'Primary' set to 'Yes'). Basic structure: Quote Lines -> Jobs -> JobContacts -> Contacts In JobContacts (the join table) I have the 'primary contact' field. As previously mentioned the layout is based on 'Quote Lines'. I thought I could simply change to the JobContacts layout, filter out all but the one record that is primary and then head back to the report layout but this doesn't seem to work (the first related contact is still displayed, not the primary contact). Stepping through the script I can see that the filter works, but it seems to not have an effect on the layout that needs it. I've tried performing the filter from the 'Quote Lines' layout but that doesn't work either. I'm sure this is simple and I'm missing something obvious in my knowledge of Filemaker! Please help!
bcooney Posted October 1, 2010 Posted October 1, 2010 (edited) You need a relationship from Jobs ->JobContacts that includes not just the JobID, but the fact that the contact is the primary contact. I usually, for this type of thing, store the primary ContactID in the Job record, rather than a Yes/No value in a field in JobContacts. So, then you can tunnel from Quote thru Jobs to Contacts using a new relationship Jobs>Contacts~prim where Jobs::ContactID_prim = Contacts::ID Edited October 1, 2010 by Guest
Recommended Posts
This topic is 5166 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 accountSign in
Already have an account? Sign in here.
Sign In Now