dbTalk Databases Forums  

FM and "OR" relationships!

comp.databases.filemaker comp.databases.filemaker


Discuss FM and "OR" relationships! in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
presley2@comcast.net
 
Posts: n/a

Default FM and "OR" relationships! - 12-18-2006 , 11:38 AM






Hi,
Please excuse the semi-stupid question in advance!

Is there a way in the FM relationship graph to create an "OR"
relationship. For example: I have created a
many-to-many relationship using social security numbers between 2
tables. I would like to do a find on the social security number OR last
name in the related field. There does not seem to be a way (in the
relationship graph) to do that in FM.

- Am I missing something in the relationship graph?
- Just can't do that in FM"
- Can do --but you have to write a script?
- You are a dummy ---give it up ...



Thanks in advance!


Reply With Quote
  #2  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: FM and "OR" relationships! - 12-18-2006 , 02:31 PM






presley2 (AT) comcast (DOT) net <presley2 (AT) comcast (DOT) net> wrote:

Quote:
I have created a
many-to-many relationship using social security numbers between 2
tables. I would like to do a find on the social security number OR last
name in the related field. There does not seem to be a way (in the
relationship graph) to do that in FM.
I haven't found one either. I'd try two seperate relations, one for each
field, so could create two separate portals or value lists or whatever.
--
http://clk.ch


Reply With Quote
  #3  
Old   
Bill
 
Posts: n/a

Default Re: FM and "OR" relationships! - 12-18-2006 , 04:29 PM



In article <1166463536.075418.158170 (AT) 79g2000cws (DOT) googlegroups.com>,
"presley2 (AT) comcast (DOT) net" <presley2 (AT) comcast (DOT) net> wrote:

Quote:
Hi,
Please excuse the semi-stupid question in advance!

Is there a way in the FM relationship graph to create an "OR"
relationship. For example: I have created a
many-to-many relationship using social security numbers between 2
tables. I would like to do a find on the social security number OR last
name in the related field. There does not seem to be a way (in the
relationship graph) to do that in FM.

- Am I missing something in the relationship graph?
- Just can't do that in FM"
- Can do --but you have to write a script?
- You are a dummy ---give it up ...



Thanks in advance!
Filemaker allows multi-key relationships. This is normally done by using
a text field as the key field, and having several text values, separated
by carriage returns, in the field. Then the relationship is made
whenever the related key field contains a value that matches one of the
values in the multi-key field.

You could have the contents of the multi-key field set by calculation,
or could perhaps use a calculation field with the result displayed as
text. That way you could cause the multi-key values to be Social
Security Number and last name, separated by a carriage return ("pipe"
character in the formula)

--
For email, change <fake> to <earthlink>
Bill Collins


Reply With Quote
  #4  
Old   
Ursus
 
Posts: n/a

Default Re: FM and "OR" relationships! - 12-18-2006 , 05:11 PM



Provided both fields are textfieldS, or you can translate both values to
text.

Create a calcfield cMyCalc, result as text. RETURN is the return symbol.
getastext (SocialSecurityNumber) & "RETURN" & name

Use this for your relation. When you now type the number OR the name it will
return the related info.
Be aware that there might be more then one user with the same name. So
setting this up with a portal and then GTRR with a script might come in
handy.

Ursus


<presley2 (AT) comcast (DOT) net> schreef in bericht
news:1166463536.075418.158170 (AT) 79g2000cws (DOT) googlegroups.com...
Quote:
Hi,
Please excuse the semi-stupid question in advance!

Is there a way in the FM relationship graph to create an "OR"
relationship. For example: I have created a
many-to-many relationship using social security numbers between 2
tables. I would like to do a find on the social security number OR last
name in the related field. There does not seem to be a way (in the
relationship graph) to do that in FM.

- Am I missing something in the relationship graph?
- Just can't do that in FM"
- Can do --but you have to write a script?
- You are a dummy ---give it up ...



Thanks in advance!




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.