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-13
2. Define a formula for the field that includes an aggregate function
for the type of summary calculation you want to perform. (See
“Aggregate functions” on page 11-7.)
For example, for a Total field, which calculates the total of values in
the related field Price (which is in a portal and uses the relationship
Line Items), define the following formula:
Sum(Line Items::Price)
Defining lookups between files
Important Before you begin, be sure you understand the information
in “Relational databases and lookups: a comparison” on page 8-7.
Defining lookups
1. Define a relationship for the lookup (see “Defining relationships
for relational databases and lookups” on page 8-10).
2. In the master file, choose File menu > Define Fields.
3. In the Define Fields dialog box, double-click the lookup
destination field (the field in the master file to copy data to). Or
create a field, then double-click it.
4. Click the Auto-Enter tab, then select Looked-up value.
5. In the Lookup dialog box, choose the relationship to use from the
relationship list.
6. In the list of field names, select the lookup source field (the field
in the related file to copy data from).
7. Select options for the lookup.
8. Click OK, click OK again, then click Done.
Keep these points in mind:
1 Be sure the lookup source field and lookup destination field are the
same field type; otherwise, you might get unexpected results.
1 To change a lookup, in the Auto-Enter options, be sure Looked-up
value is selected, click Specify, then make your changes. To stop or
suspend using a lookup, clear Looked-up value in the Auto-Enter
options.
1 When data in the related file changes and you want the master file
to contain the new values, you can look up the data again. For more
information, choose Help menu > Contents and Index, click the Index
tab, and type updating data.
To Do this
Determine what to do when
values in the match fields do not
match exactly
For If no exact match, then, select an option to
copy no value, copy the next lower or next
higher value that’s in the lookup source field,
or display a custom message or data. (In the
text box, enter the message or data, up to
255 characters.)
Prevent null (empty) data in the
lookup source field from being
copied to the lookup destination
field
Select Don’t copy contents if empty. (Clear this
option to allow empty data to be copied.)
To Do this
Select an option
for non-equal data
in match fields
Select the
lookup
source field
Choose the
relationship to
use, or define a
new one
When selected, prevents null
data from being copied