U.M. (Mac OS)

Table Of Contents
10-42 FileMaker Pro User’s Guide
Example step 4: Define fields that use relationships
When the relationships are defined, you can create the lookup
and calculations.
1. Define these fields in the Line Items file:
2. Define the Total field in the Invoices file.
The Total field is an unstored calculation that adds the extended price
of all line items. Use the Line Items relationship to define Total as:
Sum(Line Items::Extended Price)
Example step 5: Create layouts
Create layouts in the master files for data entry and reports. (See
chapter 3, “Laying out and arranging information.”)
Field name Field type Comments
Unit Price Number A lookup to Unit Price in the Products file. Use the
Products relationship.
Extended Price Calculation Enter the calculation Unit Price * Qty. Use fields
from the current file (not the Products relationship).
Product Name Calculation Use the related field Products::Product Name. For
Calculation result is, choose Text.h
File Layout names Description
Invoices Order Entry Standard layout with a portal.
1 Place these fields from the Customers file
directly in the layout: First Name, Last
Name, Address, City, and State.
1 In the Portal Setup dialog box, choose the
Line Items relationship and Allow deletion of
portal records. Place these fields from the
Line Items file in the first row of the portal:
Product ID, Product Name, Unit Price, Qty,
and Extended Price.
Customers Data Entry Standard layout
Mailing labels Labels layout
Line Items Sales Report by Product Standard layout with subsummary by product
Sales Report by Month Standard layout with subsummary by month
Products Data Entry Standard layout