Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

FileMakerPro 10 relationships

Posted on 2014-12-03
11
217 Views
Last Modified: 2015-01-05
I have three tables A, B, and C. (agencies, buildings, cataloging)
I want data from a field in table A to appear in a layout based on table C.
Using the TO of C->B->A only shows the data in the new field if there is data in an other field related to the A table. (C->A)This field is empty more often than not and is not necessary for the report.
C is related to B by bldgID and B is related to A by agencyCode.
How do I get the data to display?
0
Comment
Question by:maryj152
  • 4
  • 4
  • 2
11 Comments
 
LVL 11

Expert Comment

by:Andrew Angell
ID: 40480496
Create a field in each table called something like StaticRelationship.  Make it a global number field, and give it a value of 1.

Then you can create a table occurrence called something like AgenciesToCataloggingByStaticRel, and use the StaticRelationship field as the relationship.  

Since each table will have the same value in that field, it will always relate, so you can always use that table occurrence to display data.
0
 
LVL 6

Expert Comment

by:slinkygn
ID: 40480515
You don't need to use the above anymore.  Since FileMaker 7, one has the ability to use a Cartesian join (looks like an X in the relationship graph) to see all data through a relationship.  (The relationship can be between any two fields in the tables you want to relate; since the Cartesian operator will show all data anyway, the specific field you choose won't matter.)
http://help.filemaker.com/app/answers/detail/a_id/5463/~/using-the-cartesian-product-relationship-in-filemaker-pro
Relate A to C in that way and you should be able to see all of A's data.

Now, if you mean that you want to show a *particular* bit of data in C from A, and it's not showing up through the relationship, that usually means your relationships aren't defined well -- in other words, the data isn't necessarily structured to match what you were intending it to do.  But to troubleshoot that, we'd need more information as to what data you're storing and how it is related in a real-world sense.
0
 
LVL 11

Expert Comment

by:Andrew Angell
ID: 40480576
Good to know.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:maryj152
ID: 40481064
There are no common fields between A and C.
Can I just choose any two fields and use the X relationship?
0
 
LVL 6

Accepted Solution

by:
slinkygn earned 500 total points
ID: 40481069
Yup! The Cartesian join doesn't care what fields it's on. It'll always present all data across the relationship.
0
 

Author Closing Comment

by:maryj152
ID: 40481224
Thank you. Now I need to solve something else.
0
 

Author Comment

by:maryj152
ID: 40489695
I do need " to show a *particular* bit of data in C's layout  from table A,".
As I mentioned the two tables are not related but each is related to B.
Can I do a Cartesian Join Relationship between A and B and then between B and C and get to the data?
0
 
LVL 6

Expert Comment

by:slinkygn
ID: 40499247
Yes, you'll still get all the data that way, but if it's a specific piece of data, it could be that your relationships need to be rethought in the context of what is needed from where.  Again, for that, we would need more info as to how your tables are related to each other and what specific data you need.
0
 

Author Comment

by:maryj152
ID: 40506982
I have some other projects that are taking precedence right now. Can I contact you directly when I get back to the original question or do I need to just submit another question?
0
 
LVL 6

Expert Comment

by:slinkygn
ID: 40531754
I suppose the issue of structuring relationships that we're talking about now is probably a different question, I'd think.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
powershell code to list items in dropdown 6 87
SYbase 4 36
SQL Querying data from 3 tables, all with 1 common column 4 42
MySQL Query Using Up Memory 6 43
I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question