Fmp12 Tutorial
Fmp12 Tutorial
Tutorial
© 2007–2012 FileMaker, Inc. All Rights Reserved.
FileMaker, Inc.
5201 Patrick Henry Drive
Santa Clara, California 95054
FileMaker and Bento are trademarks of FileMaker, Inc. registered in the U.S. and other countries. The file folder logo and
the Bento logo are trademarks of FileMaker, Inc. All other trademarks are the property of their respective owners.
FileMaker documentation is copyrighted. You are not authorized to make additional copies or distribute this documentation
without written permission from FileMaker. You may use this documentation solely with a valid licensed copy of FileMaker
software.
All persons, companies, email addresses, and URLs listed in the examples are purely fictitious and any resemblance to
existing persons, companies, email addresses, or URLs is purely coincidental. Credits are listed in the Acknowledgements
documents provided with this software. Mention of third-party products and URLs is for informational purposes only and
constitutes neither an endorsement nor a recommendation. FileMaker, Inc. assumes no responsibility with regard to the
performance of these products.
For more information, visit our website at http://www.filemaker.com.
Edition: 01
Contents
Lesson 1
FileMaker Pro basics 7
How to use this tutorial 7
Where to find the sample file 8
Database concepts 8
What is a database? 8
Why use a database? 8
How is a database organized? 8
How is field data displayed? 8
FileMaker Pro basics 9
About FileMaker Pro modes 9
For more information 9
Lesson 2
Browsing information 10
Open a database and move between records 10
View information in different ways 11
See a different layout 12
View your layouts as forms, lists, and tables 14
Explore the status toolbar and layout bar 15
Find out what status toolbar buttons do 15
Customize the status toolbar 15
Save a copy of the sample file 16
For more information 16
Lesson 3
Finding and sorting records 17
Use quick find to search a database 17
Find records based on criteria in a single field 18
Find records based on criteria in specific separate fields 19
Find records that match multiple criteria in the same field 19
Find records that match a range of criteria in the same field 20
Narrow your search 21
Save a find request to use later 22
Find records using a saved find 22
Sort your found set 22
Add a new record in List View 24
For more information 24
4
Lesson 4
Creating a database and entering records 25
Create a simple database 25
About fields 25
Create a database 25
Enter data into the database 27
Create the first record 27
Create another record 27
Copy data with drag and drop 27
Modify data in a record 28
Enter data in Form View 28
Delete a record 28
Insert a file in a container field 28
For more information 29
Lesson 5
Customizing what you see 30
About layouts and tables 30
About customizing layouts 30
Explore the layout tools and the Inspector 30
Resize, move, and add a field 32
Select and resize a field 32
Move a field 32
Add a field 33
Add a tab panel 34
Display a number as currency 35
Change text size and color 36
Add a graphic to the layout 37
For more information 37
Lesson 6
Creating lists, mailing labels, and form letters 38
Create a columnar list 38
Create mailing labels 39
About labels layouts 39
Create a labels layout 39
Create a form letter 41
About form letter layouts 41
Create a one-page blank layout 41
Customize the letter with the company name 44
Add the closing 44
For more information 44
5
Lesson 7
Simplifying data entry 45
Enter data using value lists 45
Define a value list 45
Assign a value list to a field and display it as radio buttons 46
Generate values with a calculation field 47
Create a calculation field 47
Test your calculation 49
Automatically enter a serial number 49
Create a field for serial numbers 49
For more information 50
Lesson 8
Automating tasks with buttons and scripts 51
Perform a task using a button 51
Create the button 51
Perform a series of tasks using a script 52
About scripts 52
Create a script to preview the Labels layout 52
Assign a script to a button 53
Rename the button 54
Test the button 54
For more information 54
Lesson 9
Creating and running reports 55
About summary reports 55
Create a dynamic report in Table View 55
Examine the data in Table View 55
Hide data not needed in the report 55
Group and sort data and define a summary field 56
Label grouped data and remove duplicate data values 56
Use an assistant to create a report with grouped data and totals 58
About layouts for subsummary reports 58
Create a subsummary report with totals 58
Save and send a report as a PDF file 64
For more information 64
Lesson 10
Charting data 65
Create a pie chart 65
For more information 66
6
Lesson 11
Making databases relational 67
Display a related record in a file 67
Define a relationship to another table 67
Display data from a related record 68
Display a list of related records 69
Create a portal to display matching records 69
Add the fields and format the portal 70
For more information 71
Lesson 12
Sharing and exchanging data 72
About sharing data 72
Enable FileMaker network sharing 72
Opening a remote file 74
Disable FileMaker network sharing 74
About exchanging data 75
Saving and sending data 75
Supported import/export file formats 75
About importing data 76
Import data into the sample file 76
For more information 77
Lesson 13
Protecting data in FileMaker Pro 78
Create an account and password 78
About accounts 78
Create a privilege set 80
About privilege sets 80
Create a custom privilege set 81
For more information 81
Lesson 14
Backing up your databases 82
How to back up your database 82
When to back up 82
For more information 82
Lesson 1
FileMaker Pro basics
Welcome to the FileMaker® Pro tutorial. This tutorial shows you how you can manage your
information in FileMaker Pro.
You will learn how to use FileMaker Pro software to:
1 locate and sort information
1 create and enter records in a simple database
1 create mailing labels
1 create calculations, buttons, and scripts
1 create and run reports
1 display data graphically in a chart
1 create relationships between FileMaker Pro database tables
1 learn how files can be shared with other users on your network or over the internet
1 protect information in your database by assigning user accounts and privilege sets and by
backing up your databases
It takes approximately five hours to complete this tutorial, which can be done in one session or
several shorter sessions.
Note Some procedures refer to using a shortcut menu. To display a shortcut menu (context
menu), right-click or Control-click an object or area to see a list of commands. You can use the
Control Panel (Windows) or System Preferences (Mac OS) to configure your mouse, trackpad, or
input device. For example, you can set up a secondary button on a mouse or a secondary click
on a trackpad.
Lesson 1 | FileMaker Pro basics 8
Database concepts
What is a database?
A database is a method of organizing and analyzing information. You’ve probably used several
databases recently without realizing it. A date book, a parts list, and even your own address book
are databases.
1. Open the Tutorial folder on your hard drive. For the tutorial folder location, see “Where to find
the sample file” on page 8.
2. Open Sample.fmp12.
1 The database is in Browse mode. FileMaker Pro defaults to Browse mode when a database
is opened.
1 The status toolbar shows there are 29 records in the sample database. The first record is
displayed.
Lesson 2 | Browsing information 11
Book icon
Slider
3. Click the right page of the book icon to move forward one record at a time, and click the left
page to move backward one record at a time.
4. Drag the slider to the right and release to move forward a number of records at one time. Drag
the slider to the left and release to move backward a number of records.
You can also click the current record number, type the record number you want, then press
Enter (Windows) or Return (Mac OS) to go to a specific record in the database.
Tip The Records menu also provides commands to move between records. Choose
Records menu > Go to Record and choose either Next, Previous, or Go To.
Steve Williams
789 Ninth Avenue
New York, NY 10001
Dear Steve,
The check mark next to the Data Entry layout indicates the current layout. The Data Entry layout
shows most of the fields in the Customers table.
Fields
Lesson 2 | Browsing information 13
2. Choose the Customer Type List layout from the Layout pop-up menu.
This layout shows each record as one row in a columnar list. Notice that the Customer Type
List layout contains only four of the fields that were present in the Data Entry layout. Because
fewer fields are present on this layout, some data is simply not displayed. However, no data has
been removed from the database.
The Customer Type List layout displays only four of the fields present on the Data Entry layout
3. Go to the Layout pop-up menu and return to the Data Entry layout. No data has been lost.
Lesson 2 | Browsing information 14
Generally, layouts can be toggled between Form View, Table View, and List View while the
database is in Browse mode.
Form View
Table View
List View
The Customer Type List layout, viewed as a form, then as a table, and then as a list
Switch between Form View, Table View, and List View in the same layout to see how they are different.
1. In the sample file, switch to the Customer Type List layout. You see many records, displayed
as a list.
Status toolbar
Layout bar
2. When you are finished, click Close (Windows) or Done (Mac OS) in the dialog box.
Lesson 2 | Browsing information 16
4. When you are finished with this lesson, close the original sample file by choosing File menu >
Close.
Note Verify that you have Sample Copy.fmp12 before beginning this lesson. See lesson 2 for
information on accessing the Tutorial folder and making a copy of Sample.fmp12.
If you don’t see the search box, resize the FileMaker Pro window to make it wider.
Lesson 3 | Finding and sorting records 18
4. Click the book icon or slider to view the two records in the found set.
Your quick find search returned records for John Lee (First Name field) from St. Johns Circle
(Home Address 1 field) located in the UK (Country field) and William Johnson (Last Name field)
located in the UK (Country field), but not John Smith, whose record does not contain the text
“UK” in any field. This type of search is commonly referred to as an AND search, because
records must contain both “John” and “UK.”
Note It is not necessary to click Show All before performing a Find, as FileMaker Pro finds
records from the entire database by default.
2. Drag the slider to the left to display the first record in the database (Mary Smith located in the USA).
Your find request returns records for the four customers who live in New York. The pie chart
shows the found set has changed to 4 records.
5. Click the book icon or slider to view each of the four records in the found set.
1. Click Find.
2. Type 1/1/2011 in the Date Paid field.
Note FileMaker Pro uses the date format specified in your system settings, so the date format
you see and enter might differ from the format shown in this tutorial.
3. In the layout bar, click Operators and choose range from the list.
Choose range
Tip Alternatively, you can type any operator from the menu directly into a search field.
Your find request should now have 1/1/2011... in the Date Paid field.
Lesson 3 | Finding and sorting records 21
3. Click New Request. Notice that the status toolbar shows that this is the second find request in
this database search.
4. Click Omit in the layout bar to have FileMaker Pro exclude any records in the found set that fit
the criteria of this second find request.
Click Omit
7. After the ellipsis, type 3/31/2011 in the Date Paid field to exclude customers who paid at any
time during the month of March.
2. For Name, type 2011 Fees Paid, Except March and click Save.
1. In the layout bar, click the Layout pop-up menu and choose Customer Type List.
The Customer Type List layout appears. This layout will make it easier to see the results of the
sorting. The black bar to the left of the record for Mary Smith indicates it is the current record in
the found set.
Current record
3. If any fields appear in the Sort Order column on the right side of the dialog box, click Clear All.
4. In the list of available fields on the left, select Last Name and click Move.
The sort direction symbol to the right of the Last Name field increases in size from left to right.
This indicates that when the database is sorted by this field, the data will be in ascending order
(from a to z).
5. Click Sort.
The names in the Customer Type List are now displayed in alphabetical order by last name.
The current record is still Mary Smith. This record has moved to its sorted location in the list.
Lesson 3 | Finding and sorting records 24
Note Depending on the size of your FileMaker Pro window, you might have to scroll down to
see the blank record.
2. For First Name, type Connel; for Last Name, type Jordan; for Company, type DEF Ltd.; for
Customer Type, type New.
3. Click outside the Customer Type field to commit the new record in the database.
The new record appears alphabetically by last name in the list.
Tip If you don't want records to change location as you add or edit them, clear Keep records
in sorted order in the Sort Records dialog box.
6. Click Delete Record in the status toolbar, then click Delete to remove this record from the
sample file.
7. When you are finished with this lesson, close the file by choosing File menu > Close.
Create a database
1. In FileMaker Pro, do one of the following:
1 If you see the FileMaker Quick Start Screen, click Create a New Database.
1 If you don’t see the FileMaker Quick Start Screen, choose File menu > New Database.
2. Go to the Tutorial folder and select it as the location for this file.
Fields created in Table View are the text field type by default. Now you will change the field type
of some of the fields you created.
11. Move the pointer over the Fee Paid column heading until the down arrow appears. Click
the down arrow, then choose Field > Field Type > Number.
Choose Number
as the field type
12. Move the pointer over the Date Paid column heading and click the down arrow. Choose
Field > Field Type > Date. Click OK to accept the default date format in FileMaker Pro.
13. Move the pointer over the Container column heading and click the down arrow. Choose
Field > Field Type > Container.
Lesson 4 | Creating a database and entering records 27
2. Type Jane.
Tip You can also click New Record in the status toolbar to create a new record.
2. As you did for Jane Doe’s record, enter data for Antoine Dubois, who paid 75 dollars on
2/2/2011.
Your database now contains two records.
3. Drag the selected text to the Fee Paid field in record 3 and release the mouse.
Note If you can’t drag the text, drag and drop might not be enabled in FileMaker Pro. To turn
on drag and drop, choose Edit menu > Preferences (Windows) or FileMaker Pro menu >
Preferences (Mac OS). Under General, select Allow drag and drop text selection, click OK,
then repeat steps 2 and 3.
4. Select 2/2/2011 in record 2, then drag and drop it into the Date Paid field in record 3.
Lesson 4 | Creating a database and entering records 28
Delete a record
1. Click Table View .
2. Select the last record you created by clicking in any field in the record.
When you insert a file, FileMaker Pro displays the file's icon and name in the container field but
not the actual content of the file.
5. When you are finished with this lesson, close the file by choosing File menu > Close.
Lesson 4 | Creating a database and entering records 29
Tip Because you opened Sample Copy.fmp12 in lesson 3, you can choose File menu > Open
Recent, then select it from the list of recent files to open it in subsequent lessons.
2. Choose Data Entry from the Layout pop-up menu in the layout bar, if it is not already selected.
Lesson 5 | Customizing what you see 31
3. Click Edit Layout in the layout bar, and select any field.
The status toolbar displays tools you use to design layouts. If you don’t see the layout tools,
resize the FileMaker Pro window to make it wider.
Number of layouts in this file Layout tools
4. Move the pointer over the status toolbar and layout bar to familiarize yourself with the layout tools.
5. Click Inspector in the layout bar to open the Inspector.
You use the Inspector for many formatting tasks in Layout mode. The Inspector is a tool that
allows you to view and edit the settings for objects. Changes you make in Layout mode affect
only the way data appears. The data itself remains as it was entered in the file.
2. Drag the handle at the right side of the field toward the left until the field is smaller, yet large
enough to display the longest first name you expect in your file.
Blue dynamic guides appear on the layout. When you move, resize, or align objects on a layout,
dynamic guides help you create and edit objects more precisely.
Each field contains a badge , which indicates that the field is enabled for quick find. The color
of the badge shows the estimated performance when searching by this field. You can hide quick
find badges by choosing View menu > Show > Quick Find.
3. Click Save Layout, then click Exit Layout to see your results in Browse mode.
4. In Browse mode, click the book in the status toolbar to flip through the records.
If the field doesn’t display all names completely, return to Layout mode and make the field larger.
5. Click Edit Layout in the layout bar, and repeat steps 1 through 4 for Last Name.
Move a field
1. Click Edit Layout in the layout bar, then click inside the Last Name field and drag it to the right
of the First Name field.
You can use the dynamic guides to align the text in the First Name field.
Tips
1 If you accidentally move the wrong field or the tab panel, choose Edit menu > Undo Move
to reverse the change.
1 You can also use the rulers and grid, the Position tab of the Inspector, and the arrow keys
on your keyboard to align objects.
2. Drag the Last Name field label above the Last Name field.
3. Drag the First Name field label above the First Name field.
4. Align the First Name and Last Name field labels with each other and their respective fields.
Lesson 5 | Customizing what you see 33
5. Select and Shift-select the labels and fields, then use the arrow keys to move the objects closer
to the Home Address 1 field.
Your layout should look similar to the following when you are finished.
Tip If you make mistakes while designing layouts, you can click Revert in the layout bar to
discard any unsaved changes, then start again.
6. Click Save Layout, then Exit Layout in the layout bar to see your results in Browse mode.
Add a field
After a field has been defined in a table, you can display it on any layout based on that table. In
the sample database, there are defined fields that are not on this layout. You will add one of these
fields now.
Note You can also place related fields from other tables on your layouts, as explained in lesson 11.
Field tool
3. In the Specify Field dialog box, select Customer Since. Be sure that Create label is selected,
then click OK.
The Customer Since field appears on the layout.
4. Resize the new field by dragging a right handle so the field is the same size as the Date Paid field.
5. Select the field label and resize it so the entire label shows, if necessary.
6. Click Save Layout, then Exit Layout to check the new field and label in Browse mode.
8. Click Delete Record, then click Delete to remove the empty record from the file.
Lesson 5 | Customizing what you see 34
4. In the Tab Control Setup dialog box, for Tab Name type Payment Status.
5. Click Create, then OK.
You see the new tab to the right of the Contact Info tab.
6. Click outside the tab control to deselect it.
Lesson 5 | Customizing what you see 35
7. Select, then Shift-select the Company, Customer Type, Fee Paid, Date Paid, and
Customer Since fields and their labels.
11. With the fields and labels selected, drag to position them near the top of the tab panel.
12. Click Save Layout, then Exit Layout in the status toolbar to see your results in Browse mode.
3. Click Inspector in the layout bar if the Inspector is not already open.
Lesson 5 | Customizing what you see 36
4. Click Data.
Click Data
5. Near the bottom of the Inspector under Data Formatting, click Number and for Format,
choose Currency.
6. Click Save Layout, then Exit Layout, and click the Payment Status tab to see the formatted
data in the Fee Paid field.
2. Click the Favorite Bakery Discount Program heading to select the text block.
4. Under Text, type 25 for the font size, click the style button for italic, and choose the color white.
Select italic
5. With the heading text block still selected, drag the left handle of the text block to the left, if
necessary, to show all of the heading text in the new large font.
6. Drag the right handle of the text block to the left, if necessary, so the heading text block does
not extend outside the header.
Lesson 5 | Customizing what you see 37
6. Drag the logo using the dynamic guides to align the logo with the text in the header.
7. Click Save Layout, then click Exit Layout to see the finished layout.
8. When you are finished with this lesson, close the file by choosing File menu > Close.
5. Select List view for the new layout type and click Next.
The order in which you select the fields sets the order in which they appear in the columnar list.
Lesson 6 | Creating lists, mailing labels, and form letters 39
7. Click Next.
Note If a column heading’s text appears truncated, click Edit Layout in the layout bar, then
select the column heading label and drag the text box handles to show all of the label text. Save
the layout and return to Browse mode.
6. Choose Avery 5160 from the Use label measurements for list, if it is not already selected.
7. Click Next.
Lesson 6 | Creating lists, mailing labels, and form letters 40
12. When you are finished looking at your labels layout, click Exit Preview in the layout bar to
return to Layout mode.
4. Click Finish.
Because this letter will not use a header or footer, you will delete them now.
5. On the layout, click the Header part label, then press Backspace (Windows) or Delete
(Mac OS).
Tip Layout part labels appear vertically by default. If you can’t read vertical part labels, you can
pause the arrow pointer over labels to display tooltips.
You also can click the part label control in the lower left area of the FileMaker window to
switch between vertical and horizontal part labels.
Lesson 6 | Creating lists, mailing labels, and form letters 42
7. Verify that the unit of measurement for the rulers is inches. Click the top left corner of the rulers
until the corner shows in for inches (rather than cm for centimeters or pt for points).
8. Place the pointer over the Body part boundary and, using the vertical ruler as a guide, drag the
boundary down to about 11 inches.
When you release the mouse button, you should see the page boundary. If you don’t see the
page boundary, drag the Body boundary down farther.
Page boundary
9. Now drag the Body part boundary up to just above the page boundary.
The page boundary line will disappear. Dragging the body part boundary above the page
boundary limits your form letter to a single page.
10. If necessary, use the scroll bar at the bottom of the screen to scroll to the right until you see a
heavy dotted line along the right side. This is the right-side page boundary. Your letter will be
within these boundaries.
2. Using the horizontal and vertical rulers as a guide, drag a rectangle starting about 2 inches from
the top left side of the layout, and ending about 2 inches from the bottom right side, as indicated
by the page boundary lines.
When you release the mouse, the horizontal ruler displays the width of the text block. The
insertion point flashes in the top left of the text box. You will type the form letter inside the text
block.
3. Type a space.
7. Add merge fields for the home address, city, and country, with appropriate spaces, new lines,
and punctuation.
1. Press Enter or Return twice to create two line spaces at the end of the address.
3. Insert merge fields for the first and last name, separated by a space.
In your own letters, you can use more fields (for example, a title field) for a more professional
salutation.
We look forward to doing business with you and hope you are pleased with our
products and service!
If you misspell a word, you’ll see a red line under it. To turn off the real-time spelling checker in
this file, choose File menu > File Options. In the File Options dialog box, click the Spelling tab.
Clear Indicate questionable words with special underline.
If a field is likely to contain words (such as names) that a spelling checker will mark as misspelled,
you can turn off spelling checking on specific fields. For information about turning off spelling
checking in specific fields in a file, see FileMaker Pro Help.
Lesson 6 | Creating lists, mailing labels, and form letters 44
5. Click Save Layout, then Exit Layout in the layout bar to see your personalized letter, ready to
print, for every record in the database.
Note The record that appears in your window may differ from the one shown here due to
experimenting you may have done in the sample file.
7. When you are finished with this lesson, close the file by choosing File menu > Close.
8. Click OK to finish.
5. Select Data. Under Field, choose Radio button set for Control Style.
Click Data
Radio buttons and values from the Customer Types value list appear in the Customer Type field.
7. Click Save Layout, then Exit Layout and click the Payment Status tab to see the radio buttons
in Browse mode.
Lesson 7 | Simplifying data entry 47
4. In the Manage Database dialog box, click the Fields tab, if it is not already selected.
7. Click Create.
The Specify Calculation dialog box appears.
8. Scroll through the list of functions on the right in the Specify Calculation dialog box until you
locate If (test ; resultOne ; resultTwo). Double-click this function so that it appears in the
large text box below.
This function has three parts: a test, a result if the test evaluates as true (result one), and a
result if the test evaluates as false (result two). You will replace the placeholders test,
resultOne, and resultTwo with the actual components of the calculation.
Lesson 7 | Simplifying data entry 48
Replace these
placeholders
to build your
calculation
9. Select the placeholder text test and type the following exactly as it appears here:
Customer Type = “Continuing”
The completed
calculation
Choose Number
15. Select the Annual Fee field and Shift-click its label. Drag them under the Customer Since
field, aligning them with the fields above.
Lesson 7 | Simplifying data entry 49
Your calculation formula is now complete. When data is entered in the Customer Type field,
FileMaker Pro compares it to the word you are testing for, “Continuing.” The test evaluates true if
data in the field matches this word, and the calculation returns your first result (100). If data doesn’t
match, the test evaluates false, and the second result is returned (200).
3. Change the value in the Customer Type field from New to Continuing.
Notice the result in the Annual Fee field—it changes as the customer type changes.
3. In the Manage Database dialog box, click the Fields tab if it is not already selected.
6. Click Create.
7. Click Options.
8. Select Serial number on the Auto-Enter tab. You don’t need to change the Generate choice,
or the amounts for next value or increment by for this exercise.
Select Serial
number
10. Drag the field and field label onto the Payment Status tab, aligning them with the other fields
and labels.
Lesson 7 | Simplifying data entry 50
11. Click Save Layout, then Exit Layout to switch to Browse mode.
15. When you are finished with this lesson, close the file by choosing File menu > Close.
2. Choose Data Entry from the Layout pop-up menu in the layout bar, if it is not already selected.
6. In the Button Setup dialog box, under Navigation, select the Go to Layout command in the list.
8. In the Specify Layout dialog box, choose Customer Type List and click OK.
12. To test your button, click Save Layout, then Exit Layout to switch to Browse mode, and click
the button.
The button displays the Customer Type List layout.
Tip You can choose View menu > Show Buttons in Layout mode to display a button badge
on button objects in Layout mode.
About scripts
A script lets you construct a series of instructions for FileMaker Pro to perform. Like buttons, scripts
allow you to automate most of the FileMaker Pro menu commands, as well as activate some
commands not found in the FileMaker Pro menus. Simple scripts can perform a single task, while
complex scripts might combine elements (such as user feedback and control) with programming
techniques (such as branching and looping) to make powerful, dynamic instruction sets.
4. From the list on the left, scroll down and under Navigation, select the Go to Layout script step
and click the Move button. (You can also select and move script steps by double-clicking them.)
5. In the Script Step Options area, for Specify, choose Layout, then choose the Labels layout,
and click OK.
6. Select the Enter Preview Mode script step from the list on the left, and move it to your script.
The finished
script
7. Close the Edit Script dialog box, click Save, then close the Manage Scripts dialog box.
8. To run the script you have just created: Choose Scripts menu > Preview Labels Layout.
FileMaker Pro displays the Labels layout and switches to Preview mode.
1. Choose Data Entry from the Layout pop-up menu in the layout bar.
2. Click Exit Preview, then Edit Layout in the layout bar.
3. Click the Go to Customer Type List button you created earlier in this lesson and choose
Format menu > Button Setup.
4. In the Button Setup dialog box, select the Perform Script script step near the top of the list on
the left.
Lesson 8 | Automating tasks with buttons and scripts 54
Select
Perform
Script
5. In the Options area, for Current Script click Specify. Select Preview Labels Layout from the
list of available scripts, and click OK.
6. Leave the rest of the default button settings as they are and click OK.
2. Click the button once. The text insertion point appears in the button.
3. Select the button text and type Preview Labels Layout to rename this button.
You might need to select and resize the button to display the text, move objects in the header,
or drag the right edge of the layout to the right to widen the layout, so everything fits within the
page boundary.
2. When you are finished with this lesson, close the file by choosing File menu > Close.
2. Choose Data Entry from the Layout pop-up menu in the layout bar, if it’s not already selected.
2. In the Modify Table View dialog box, clear the checkboxes for all fields except Company, First
Name, Last Name, and Fee Paid.
3. Click OK.
2. Move the pointer over the Fee Paid column heading, and click the down arrow. Choose Trailing
Subtotals, then Total (Annual Fee Revenue) in the shortcut menu.
Subtotal amounts appear in the Fee Paid column at each company grouping.
Note If you can’t see the subtotal amounts in the Fee Paid column, drag the Fee Paid column
heading to make the column wider.
3. Move the pointer over the Company column heading again and click the down arrow. Choose
Add Trailing Grand Summary in the shortcut menu.
Note You may need to scroll down to see the trailing grand summary.
Right-click or
Control-click the
summary row
2. Move the pointer over the Company column heading, and click the down arrow. Choose
Field > Hide Field to hide the repeated company data in the Company column.
The label you created on the Company field remains in Table View to identify the group field.
Your finished report displays:
1 the fee paid by each customer
1 subtotals of fee revenue by company
1 a grand total of fee revenue from all companies
Grand total
For this report to display properly in Table View, data must be sorted by Company.
Lesson 9 | Creating and running reports 58
3. Move the pointer over any column heading, and click the down arrow. Choose
Table View > Reset, then click Yes to clear the dynamic report settings and display all fields
from the Data Entry layout.
In this exercise, you will create a report that includes subtotals for each category and a grand total
for the entire report. The subsummary report you will create:
1 groups the customers by customer type
1 subtotals the fees collected for each customer type
1 provides a grand total of these fees
The New Layout/Report assistant creates these structures and makes these settings for you.
1. Click Form View in the layout bar, then click Edit Layout in the layout bar.
5. Select Include Subtotals and Include Grand Totals, if they are not already selected.
Notice how the report preview in the assistant changes, giving you an idea of how your report
will look with the current settings.
6. Click Next.
1. Select the first field to be used in this report, Customer Type, and move it to the Fields shown
on layout/report list.
2. Select and move the Last Name field.
5. Click Next.
6. You want to group the records by Customer Type, so move this field to the Report categories list.
Lesson 9 | Creating and running reports 60
8. Click Next.
9. Move the Last Name field to the Sort order list.
This sorts the records in each group of customer types alphabetically by customers’ last names.
Notice that the break field Customer Type appears automatically at the top of the Sort order
list. FileMaker Pro will group records by this category before sorting data.
2. For Category to summarize by, use the default value of Customer Type.
Lesson 9 | Creating and running reports 61
3. For Subtotal placement, use the default value of Below record group.
4. Click Add Subtotal. This tells FileMaker Pro to create a subtotal of the annual fees that are paid
beneath each customer category.
5. Click Next.
6. For Summary field, click Specify and select Annual Fee Revenue from the list of available
fields, then click OK.
This tells FileMaker Pro to use the Annual Fee Revenue field in the grand total.
7. Click Add Grand Total. This tells FileMaker Pro to create a grand total of annual fees.
8. Click Next.
2. Click Next.
3. In the Header area, for Top center, choose Large Custom Text.
4. Type Annual Fee Report for the header of the report and click OK.
Lesson 9 | Creating and running reports 62
5. In the Footer area, for Bottom center, choose Page Number to include a page number at the
bottom of each page of the report.
6. Click Next.
4. Click Finish.
You see the completed report in List View. The fees collected for each customer type are
subtotaled, and a grand total of all fees appears at the bottom of the report.
Note Depending on experimentation you may have done in earlier lessons, your finished
report may not look like the following illustration.
Subtotals
3. In the Save Records As PDF dialog box, for File Name (Windows) or Save As (Mac OS), type
Annual Fee Report.
Note If you use a web-based email client, in step 5 do not select the Create email with file
as attachment option. Create an email message in your email client, attach the report PDF file
manually, then send the message.
7. When you are finished with this lesson, delete the email message, then close the sample file by
choosing File menu > Close.
2. Choose Data Entry from the Layout pop-up menu in the layout bar, if it’s not already selected.
4. Move the pointer over the Company column, click the down arrow, then choose Sort
Ascending.
5. Move the pointer over the Fee Paid column, click the down arrow, then choose Chart > Chart
Fee Paid by Company.
You see a preview of the chart in the Chart Setup dialog box.
Column charts display in the Chart preview by default. You can change the chart type and
specify other settings in the Chart inspector on the right.
Lesson 10 | Charting data 66
Notes
1 You can choose a layout containing a quick chart from the Layout pop-up menu to display it
later.
1 To modify a chart, switch to Layout mode and double-click the chart.
10. When you are finished with this lesson, close the file by choosing File menu > Close.
4. In the Customers table, click the Company field and drag a line to the Company field in the
Companies table.
The Company field is the match field.
Lesson 11 | Making databases relational 68
5. Release the mouse button. You see the relationship you have created.
The relationship is based on matching data in the Company field in both tables. Records are
related when data in the Company field in one table matches data in the Company field in the
other table.
1. Choose Corporate Account Information from the Layout pop-up menu in the layout bar.
2. Click Edit Layout in the layout bar.
3. Using the Field tool in the status toolbar, drag a field onto the layout.
You see the Specify Field dialog box displaying the list of fields in this table.
4. Click Current Table (“Customers”) and choose the Companies table from the list.
You now see a list of the fields in the related table Companies. The colons (::) before each field
name show that these are related fields, not fields defined in the Customers table you are
currently working in. These related fields will display data from the related table.
6. Select Create label (if it’s not already selected), then click OK.
7. Repeat steps 3-6 for ::City and ::Country.
8. Move the fields if necessary, and resize the fields to display all the data they contain. When
you’re finished, the fields should look like this:
9. Click Save Layout, then Exit Layout in the layout bar to return to Browse mode.
Lesson 11 | Making databases relational 69
10. Click the book in the status toolbar to flip through the records until you see the company name
change.
Though the Corporate Account Information layout is based on the Customers table, you can
view address data stored in the Companies table because of the relationship you set up earlier
in this lesson.
2. Choose File menu > Manage > Database, and click the Relationships tab, if it isn’t already
selected.
3. In the relationships graph, double-click the relational operator to display the Edit
Relationship dialog box.
4. At the bottom of the dialog box under Customers, select Allow creation of records in this
table via this relationship. This lets you add a name to the Customer Type List.
Select this
checkbox
5. Click OK, then click OK again to close the Manage Database dialog box.
6. Use the book or slider in the status toolbar to move to the first company record (ABC Company),
if necessary.
Lesson 11 | Making databases relational 70
8. Select the Portal tool in the status toolbar and draw a box on the layout to hold the list of
names.
9. In the Portal Setup dialog box, for Show related records from choose the Customers table.
10. Select Show vertical scroll bar.
3. Click OK.
4. Use the Text tool in the status toolbar to create field labels above the First Name and Last
Name fields in the portal.
When you are finished, the portal should look like this:
5. Click Save Layout, then click Exit Layout to view the list of customers in each company.
Note Depending on experimentation you may have done in earlier lessons, your portal may
look different than the one shown in the following illustration.
6. Test your new structure: type the name of a new customer at ABC Company.
7. Choose Data Entry from the Layout pop-up menu in the layout bar to see the new record.
When you added the new customer, the relationship automatically created a record for this
customer in the Customers table. Click the Payment Status tab of the new record.
ABC Company is automatically entered into the match field because the name was added to
the portal of the ABC Company record.
8. When you are finished with this lesson, close the file by choosing File menu > Close.
Important Your FileMaker Pro licensing agreement requires that you purchase a license for each
separate computer on which the FileMaker Pro application is installed. Each software license may
not be shared or used concurrently on different computers.
The first person to open a shared file is the host. Any user who connects to and opens the hosted
file is a client.
Lesson 12 | Sharing and exchanging data 73
Once a shared file is open, the host and clients have access to the same information, and all
changes to the file appear in each user’s window.
Changes to the data, scripts, or layouts made by any user are saved in the shared file. The shared
file is saved on the disk where the file resides.
Sort orders, find requests, import and export field orders, and print settings are specific to each user.
To enable FileMaker network sharing:
1. Open Sample Copy.fmp12.
Note To enable or change a file’s sharing status in your own files, you must open them with
an account that has Manage extended privilege set access privileges. You will learn about
accounts, passwords, and privilege sets in lesson 13.
3. In the FileMaker Network Settings dialog box, for Network Sharing, click On.
You see the TCP/IP address of your system below the Network Sharing controls.
Select On to enable
network sharing
Sample Copy.fmp12 is
selected in the list
5. Click OK.
Note Windows: You might receive a security warning from the operating system when you
enable network sharing in FileMaker Pro.
Sample Copy is now hosted on your computer. You must keep this file open to make it available
to users on your network.
Note If your computer is not on a network or if there are no FileMaker Pro files currently being
hosted, no files are listed in the Open Remote File dialog box.
Select to see a
list of hosts
4. Click Open.
Depending on how file sharing is set up on the host computer, you might have to enter an
account name, password, and domain name (Windows only) to open the remote file.
4. To disable network sharing of all files, for Network Sharing, click Off.
5. Click OK.
Note Most file formats do not import or export formatting settings such as font, size, style, and color.
Lesson 12 | Sharing and exchanging data 76
Important Certain import operations that update existing records and update matching records
overwrite existing data during the import process, which cannot be undone. To safeguard your
data, always choose File menu > Save a Copy As to make a backup of the file before you perform
an import that updates records.
The file you import records from is the source. The file you import records to is the target.
3. For Files of type (Windows) or Show (Mac OS), choose All files (Windows) or All Available
(Mac OS), then choose MyFile.fmp12 in the Tutorial folder.
MyFile.fmp12 is the file you created in lesson 4 and the source file for this data import exercise.
4. Click Open.
The Import Field Mapping dialog box appears.
7. Make sure that the First Name field under Source Fields is on the same row as the First Name
field under Target Fields.
You can move target fields up and down in the list using the slider. Place the pointer over
the double-arrow to activate the slider.
9. Make sure that an appears between both the First Name fields and the Last Name fields.
If you don’t see an between matching fields, click (Windows) or (Mac OS) to change
the setting.
The remaining fields should have (Windows) or (Mac OS) between them. The data in
these fields will not be imported to the target file.
Source file to
import from Target file to import data into
Import action
12. Review the information in the Import Summary dialog box, then click OK.
Records in MyFile.fmp12 that contain first name and last name data have been added to
Sample Copy.fmp12. The current found set contains the newly imported records. Browse the new
records to verify the imported data. Click Show All in the status toolbar to see all records in the file.
13. When you are finished with this lesson, close the sample file by choosing File menu > Close.
Predefined
accounts
Custom
accounts
Note For security reasons, password text never appears in FileMaker Pro. Always make a note
of passwords you enter when setting up accounts, then provide passwords to the appropriate
users. Store passwords in a safe place in case they’re forgotten and so they can’t be stolen.
Predefined
privilege sets
4. Click Edit.
Extended privilege
settings appear here
8. Click OK.
Temporary Staff appears in the privilege set list. This privilege set can be used by one or more
accounts.
9. Click OK.
11. Type Admin for Full Access Account, leave Password blank, then click OK.
12. When you are finished with this lesson, exit or quit FileMaker Pro to close all open files.
2. Identify a disk or volume that has enough available space for a copy of the database.
5. Click Save.
Important Next time, back up to a different disk or volume. Never back up over the only or most
recent copy of your file. You should have several different backups at all times.
When to back up
You should back up:
1 as often as necessary to be sure you can restore all of your data in an emergency
1 before you make a major or irreversible change like deleting records, deleting a field, or
replacing data using the Import or Replace features
Remember, it takes far less time to back up a file than it does to recreate a lost or damaged file.