dbTalk Databases Forums  

relationship chain bug?

comp.databases.filemaker comp.databases.filemaker


Discuss relationship chain bug? in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
aditsu@gmail.com
 
Posts: n/a

Default relationship chain bug? - 06-13-2005 , 11:57 AM






I found a strange problem in FM7:
I have a table A, linked to B (child of A), linked to C (child of B).
In a layout for table A I put a portal with records from C. If I put
fields or buttons for table B in that portal, they will only refer to
the first matching B record!
I found a workaround: if I extend the chain with another occurence of B
(say B2), so I have A < B < C > B2 ("<" means 1-to-many relationship)
and put fields/buttons for B2 instead, it works fine. But why wouldn't
it work with B?

Adrian


Reply With Quote
  #2  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: relationship chain bug? - 06-13-2005 , 12:09 PM






You have found the proper way of setting this up. It doesn't work in
your original arrangement specifically because TableB is between A
(layout base) and C (portal). The valid relationship is from A to B,
but since the portal is not for B, it is treated as though you'd put
that 'B' field anywhere else on the layout and therefore shows the first
related record.

Since you are showing records in the portal from C, the B field grabs
the correct B record from the chain based on the context from which it
is coming from (A). I'm not saying it wouldn't be nice or logical for
it to show the correct B record since there is obviously a (potentially)
unique B record for each C...but that's just not how it works.


aditsu (AT) gmail (DOT) com wrote:
Quote:
I found a strange problem in FM7:
I have a table A, linked to B (child of A), linked to C (child of B).
In a layout for table A I put a portal with records from C. If I put
fields or buttons for table B in that portal, they will only refer to
the first matching B record!
I found a workaround: if I extend the chain with another occurence of B
(say B2), so I have A < B < C > B2 ("<" means 1-to-many relationship)
and put fields/buttons for B2 instead, it works fine. But why wouldn't
it work with B?

Adrian

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance


Reply With Quote
  #3  
Old   
aditsu@gmail.com
 
Posts: n/a

Default Re: relationship chain bug? - 06-13-2005 , 01:33 PM



Oh, I guess I'll have to live with it then.

Thanks
Adrian


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.