User manual
Table Of Contents
- Preface Learning how to use FileMakerPro
- Chapter 1 FileMaker Pro basics
- Chapter 2 Adding and viewing data
- Chapter 3 Finding and sorting information
- Finding records
- Finding text and characters
- Finding exact matches in text fields
- Finding numbers, dates, and times
- Finding ranges of information
- Finding data in related fields
- Finding records that match multiple criteria
- Finding empty or non-empty fields
- Finding duplicates
- Finding all records except those matching criteria
- Hiding records from a found set and viewing hidden records
- Viewing, repeating, or changing the last find
- Sorting records
- Finding records
- Chapter 4 Previewing and printing information
- Chapter 5 Creating a database
- Chapter 6 Creating and managing layouts and reports
- Chapter 7 Customizing layouts
- Chapter 8 Working with related files
- Chapter 9 Protecting databases with passwords and groups
- Chapter 10 Creating scripts to automate tasks
- About scripts
- Creating scripts: an overview
- About ScriptMaker steps
- Control script steps
- Navigation script steps
- Sort, find, and print script steps
- Editing script steps
- Fields script steps
- Records script steps
- Windows script steps
- Files script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Changing scripts
- Duplicating, renaming, or deleting scripts
- Importing scripts
- Listing scripts in the Scripts menu
- Using buttons with scripts
- Example of a ScriptMaker script
- Chapter 11 Using formulas and functions
- Chapter 12 Importing and exporting data
- Chapter 13 Sharing databases on a network
- Chapter 14 Publishing databases on the Web
- About publishing databases on the Web
- How users work with databases on the Web
- What you need to publish databasesontheWeb
- Publishing databases on the Web: an overview
- Enabling FileMaker Pro Web Companion
- Configuring FileMaker Pro WebCompanion
- Enabling Web Companion sharing
- Setting up browser views
- Testing your published database
- About browser views for web publishing
- Chapter 15 Using ODBC with FileMakerPro
- Appendix A Customizing FileMaker Pro
- Appendix B Backing up and recovering files
- Appendix C FileMaker Pro Quick Reference (Windows)
- Appendix D FileMaker Pro Quick Reference (Mac OS)
- Index
Working with related files
8-5
1 Define a lookup, to copy data from one related record for each
record in the master file (a one-to-one correspondence). For
example, use a lookup to copy the current price of a product into a
Line Items file. (Data copied to the master file doesn’t automatically
change when the data in the related file changes.)
Keep these points in mind:
1 Each relationship involves only one master file and one related
file; however, you can define many relationships from a master file
and many relationships to a related file.
1 The master file for one relationship can be a related file for another,
and a related file of one relationship can be a master file for another.
1 You can define many relationships between the same two database
files. For example, the relationships can refer to different match
fields.
1 You can define a relationship from one file to the same file (a self-
join). For example, use a self-join in a portal to display a subset of
data in the current file, such as all the employees of each manager.
For more information about self-joins, choose Help menu > Contents
and Index, click the Index tab, and type self-joins.
1 If the master file is protected with passwords, you must have the
master password to define relationships. In addition, when you type
data in the match field of the master file, you might be asked to type
a password for the related file when the related file is protected with
passwords. (See “Defining passwords” on page 9-1.)
1 You can create a many-to-many correspondence between database
files. (See “Creating many-to-many relationships” on page 8-15.)
About match fields for relationships
As you define and select the match fields for relationships, keep
these points in mind:
1 In most cases, the match fields used in a relationship contain equal,
stored values. For example, when one record in the match field of the
master file contains 009-845 and one record in the match field of the
related file also contains 009-845, a relationship is established
between those two records.
1 The match fields used in a relationship can have different names;
what establishes a relationship is that the match fields contain
matching values.
1 The match field in the master file can be any type except Container.
The match field in the related file can be any type except Container,
Global, or Summary.
1 The match field in the related file must be a field that can be
indexed.
1 If match fields are text fields, FileMaker Pro looks at the first 20
characters of each word in the field, up to 60 characters (including
spaces).
1 Make sure the match fields used in a relationship are the same data
type.
1 The match field in either (or both) the master file or related file can
contain a calculation formula. For example, the formula Unit
Price in the match field of the master file establishes a relationship
to a record (or records) in the related file whose match field contains
the value of the Unit Price field in the master file. You can also
design a calculation formula for the match field to match multiple
records. For example, the formula Unit Price < 100.00 in the
match field of the master file establishes a relationship to all records
in the related file whose match field contains a value less than
100.00.