Zimbo Posted July 11, 2008 Posted July 11, 2008 Hi Everyone, First off, great community. I'm a newbie and I've been making the transition to FMP from Access and I certainly have enjoyed the change. The solution I'm putting together is coming slowly... But I have run into a few snags: I have a table called TBJobCost and this has two TO's on my graph: TOOutsourcingCosts and TOTimesheets. I've built layouts that add records with respect to these occurrences. However, when I create a list layout for TOTimesheets, I get all the data in the TBJobCost table. So, what I need to know: 1. Have I used TO's correctly (Timesheet data and outcourcing data is almost the same hence using the one table)? 2. Should I have split these into two tables? 3. If I have done the right thing by using occurences, do I need a field to differentiate the types on the JobCost table? (I thought the realtionship would handle it (but I might be very mistaken)). 4. How do I only show the data from the TO that I want when in a list view? I think what I'm trying to do relates to some of the discussions that I have seen on the forum regarding object oriented DB design. Any thoughts and help would be appreciated. Regards George
Søren Dyhr Posted July 11, 2008 Posted July 11, 2008 You need to adjust to filemakers methods, and in my humble opinion is nowhere better to start than watching this movie: http://www.filemakermagazine.com/videos/graph-rules-four-rules-to-remember.html ...it will answer a myriad of question you obviously must have! --sd
comment Posted July 11, 2008 Posted July 11, 2008 Records belong to a table, not to any one of the table's occurrences. Any TO is capable of showing all records of its base table. Layouts belong to a TO, but this doesn't limit the records that can be shown using a layout. It DOES limit which RELATED records can be seen from the point-of-view of the layout (only records from relationships that are linked using the layout's TO). Records created in any layout of a base table are equal - if you have types of record, you must use a field to distinguish between them. Relationships can USE this field to make only certain type available through the relationship. But the filtering is done by the relationship, not by the TO itself. To show only a certain type of records in a layout of the same table, you need to FIND them. This can be done in one of two ways: by performing a find, or by coming from another TO using the Go to Related Record [show only related records] script step. If the relationship is defined to make only certain type of records related, the result will be a found set of that type only. See also: http://www.fmforums.com/forum/showtopic.php?tid/193634/
Zimbo Posted July 16, 2008 Author Posted July 16, 2008 Hi, Thanks for the post, that was exactly what I was looking for. Cheers George
Recommended Posts
This topic is 6033 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