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-3
For example, a travel agency might store trip information in a Trip
file, then use it with client information that’s in a Client file and with
billing information that’s in an Invoice file.
You create a relational database by first defining a relationship in the
master file. Then you add the fields to display the data from the
related file on a layout of the master file. You can then work with the
data in the related fields in all modes when you work with records in
the master file.
When you enter a value in the match field of a record in the master file,
FileMaker Pro uses the relationship to access all the records in the
related file whose match field contains a value that satisfies the
requirements of the relationship. Then it displays data from the fields
of the related file in the current record of the master file.
When the related field is in a portal on the layout, values from all
related records are displayed.
When the related field is placed directly on the layout, the value from
the first (or only) related record is displayed in the field. (The first
related record that’s accessed depends on whether the related records
are sorted. See “Defining relationships for relational
databases and lookups” on page 8-10.)
Invoice file
A-200-61
Invoice No
6-Oct-2001
Date
C100
Client ID
Trip
ID Trip Name
T10
Cost $
NY-Roma 550.00
T20 Roma-Istan 700.00
Williams
Name
1,250.00Total
Client file
C100
Client ID
Williams
Client Name
408-555-3456
Phone
Trip ID
Trip Name
T10
NY-Roma
T20
Roma-Istan
Trip file
T10Trip ID
NY-RomaTrip Name
Route
ID Origin
R200
Destination
NY Paris
R42 Paris Roma
Master file
C200
Client ID
Smith
Client Name
408-555-1234
Phone
Route
ID
Origin
R20
Destination
NY Paris
R42 Paris Roma
T10
Trip ID
T10Trip ID
R20Route ID
BostonOrigin
LondonDestination
T10Trip ID
R42Route ID
ParisOrigin
RomaDestination
Related file
All records in
the related file
are displayed
in a portal
Relationship
M
aster
fil
e
C200Client ID
SmithClient Name
408-555-1234Phone
Route
ID Origin
R42
Destination
Paris Roma
T10Trip ID
T10Trip ID
R20Route ID
BostonOrigin
LondonDestination
T10Trip ID
R42Route ID
ParisOrigin
RomaDestination
Related file
Related fields not
in a portal–only
the first record in
the related file is
displayed
Relationship