14.10.2013 Views

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10-42 <strong>FileMaker</strong> <strong>Pro</strong> User’s <strong>Guide</strong><br />

Example step 4: Define fields that use relationships<br />

When the relationships are defined, you can create the lookup<br />

and calculations.<br />

1. Define these fields in the Line Items file:<br />

Field name Field type Comments<br />

Unit Price Number A lookup to Unit Price in the <strong>Pro</strong>ducts file. Use the<br />

<strong>Pro</strong>ducts relationship.<br />

Extended Price Calculation Enter the calculation Unit Price * Qty. Use fields<br />

from the current file (not the <strong>Pro</strong>ducts relationship).<br />

<strong>Pro</strong>duct Name Calculation Use the related field <strong>Pro</strong>ducts::<strong>Pro</strong>duct Name. For<br />

Calculation result is, choose Text.h<br />

2. Define the Total field in the Invoices file.<br />

The Total field is an unstored calculation that adds the extended price<br />

of all line items. Use the Line Items relationship to define Total as:<br />

Sum(Line Items::Extended Price)<br />

Example step 5: Create layouts<br />

Create layouts in the master files for data entry and reports. (See<br />

chapter 3, “Laying out and arranging information.”)<br />

File Layout names Description<br />

Invoices Order Entry Standard layout with a portal.<br />

1 Place these fields from the Customers file<br />

directly in the layout: First Name, Last<br />

Name, Address, City, and State.<br />

1 In the Portal Setup dialog box, choose the<br />

Line Items relationship and Allow deletion of<br />

portal records. Place these fields from the<br />

Line Items file in the first row of the portal:<br />

<strong>Pro</strong>duct ID, <strong>Pro</strong>duct Name, Unit Price, Qty,<br />

and Extended Price.<br />

Customers Data Entry Standard layout<br />

Mailing labels Labels layout<br />

Line Items Sales Report by <strong>Pro</strong>duct Standard layout with subsummary by product<br />

Sales Report by Month Standard layout with subsummary by month<br />

<strong>Pro</strong>ducts Data Entry Standard layout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!