If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > FileMaker > are merge field conditionals possible

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-04, 03:37
cjtown cjtown is offline
Registered User
 
Join Date: Apr 2004
Posts: 2
Question are merge field conditionals possible

Hi -
I am redesigning a company database in Filemaker 7 to utilise the new relational features, and I have the following question:

Background:
I have a 'Clients' table which is linked to an 'AddressBook' table and a 'ClientCorrespondence' table by ClientID->ClientFK. The client table stores individual and company details (first name, last name, company name etc). The address book table stores address details and the type of address (street, city, state etc and home address, work address etc...). The correspondence table simply stores the contents of letters and the dates they were created and modified, along with the ClientFK.

Question:
In one of the layouts for the ClientCorrespondence table I use merge fields to extract the related name and address information from the client and address book tables. However, I only want to display "company name" from the clients table IF the related address is a "work address". Is there a way to insert conditional logic into merge fields? Alternatively, might there be a way to achieve this via a script? I thought about moving the "company name" to the address table, but I am reluctant to do this because it properly belongs to the client table.

Any help and suggestions gratefully received!

Thanks,

Chris
Reply With Quote
  #2 (permalink)  
Old 12-21-04, 09:27
CobaltSky CobaltSky is offline
Registered User
 
Join Date: May 2004
Location: Melbourne, Australia
Posts: 23
Hi Chris,
I believe the answer to this is to set up the relationship to your AddressBook table to match on type of address as well as ClientID, based on a gflobal or constant field in the clients table which you've stored the work address type indicator

That way, the match will only be valid if the related address is a work address and your display of related address data will be conditional.
__________________
-------------------
Ray
FileMaker Developer
http://www.nightwing.com.au/FileMaker
Reply With Quote
  #3 (permalink)  
Old 12-21-04, 11:21
cjtown cjtown is offline
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks, Ray - I see how that works. Rather neat
Chris
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On