Академический Документы
Профессиональный Документы
Культура Документы
Tutorial
© 2001-2007 FileMaker, Inc. All Rights Reserved.
FileMaker, Inc.
5201 Patrick Henry Drive
Santa Clara, California 95054
FileMaker is a trademark of FileMaker, Inc., registered in the U.S. And other countries, and All persons and companies listed in the examples are purely fictitious and any resemblance to
ScriptMaker and the file folder logo are trademarks of FileMaker, Inc. All other trademarks are existing persons and companies is purely coincidental. Credits are listed in the
the property of their respective owners. Acknowledgements document provided with this software. Mention of third-party products is for
FileMaker documentation is copyrighted. You are not authorized to make additional copies or informational purposes only and constitutes neither an endorsement nor a recommendation.
distribute this documentation without written permission from FileMaker. You may use this FileMaker, Inc. assumes no responsibility with regard to the performance of these products.
documentation solely with a valid licensed copy of FileMaker software. For more information, visit our website at www.filemaker.com.
Edition: 01
Contents
Lesson 1 Lesson 4
FileMaker Pro basics Creating a database and entering records
How to use this tutorial 7 Create a simple database and define fields 21
Where to find the sample file 7 About field definitions 21
Database concepts 8 Create a database 21
What is a database? 8 Enter data into the database 22
Why use a database? 8 Create the first record 22
How is a database organized? 8 Create another record 22
How is field data displayed? 8 Copy data with drag and drop 22
FileMaker Pro basics 8 Modify data in a record 23
About FileMaker Pro modes 9 Delete a record 23
For more information 9 Insert a file in a container field 23
For more information 23
Lesson 2
Browsing information
Lesson 5
Open a database and move between records 11 Customizing what you see
View information in different ways 12 About layouts and tables 25
See a different layout 12 About customizing layouts 25
View your layouts as forms, lists, and tables 13 Resize, move, and add a field 25
Save a copy of the sample file 14 Select and resize a field 25
Create a file using a Starter Solution 14 Move a field 26
For more information 14 Add a field 26
Add a tab panel 27
Lesson 3
Display a number as currency 28
Finding and sorting records
Add color to a tab panel 28
Find records based on criteria in a single field 15
Change text size and color 29
Find records based on criteria in separate fields 16
Add a graphic to the layout 29
Find records that match multiple criteria in the same field 16
For more information 30
Find records that match a range of criteria in the same field 17
Narrow your search 17
Sort your found set 18
For more information 19
4 FileMaker Pro Tutorial
Lesson 11
Sharing and exchanging data
About sharing data 57
Enable FileMaker network sharing 57
Opening a remote file 58
About exchanging data 59
Saving and sending data 59
Supported import/export file formats 59
About importing data 59
Import data into the sample file 59
For more information 60
Lesson 12
Protecting data in FileMaker Pro
Create an account and password 61
About accounts 61
Create a privilege set 62
About privilege sets 62
Create a custom privilege set 63
For more information 63
Lesson 13
Keeping your data safe
How to back up your database 65
When to back up 65
For more information 65
6 FileMaker Pro Tutorial
Lesson 1
FileMaker Pro basics
Welcome to the FileMaker® Pro tutorial. This tutorial shows you This tutorial assumes that you are familiar with your computer’s
how you can manage your information in FileMaker Pro. operating system. Opening files, locating folders, and other activities
You will learn how to use FileMaker Pro software to: that require some knowledge of your computer’s OS are a necessary
part of completing this tutorial.
1 locate and sort information
Because using FileMaker Pro is the most effective way to learn the
1 create and enter records in a simple database
application, each lesson features a hands-on activity designed to
1 create mailing labels guide you through menus, screens, and concepts step by step.
1 create calculations, buttons, and scripts The file included with this tutorial is intended to illustrate the
1 create and run reports features of FileMaker Pro, and as such, might be unsuitable for use
as a template for further development.
1 create relationships between FileMaker Pro database tables
1 learn how files can be shared with other users on your network or Where to find the sample file
over the Internet
The sample file contains data for the Corporate Travelers Club and
1 protect information in your database by assigning user accounts provides a place for you to practice building the database elements
and privilege sets and by backing up your databases that are described in each lesson. If the sample file was installed,
It takes approximately four hours to complete this tutorial, which can it is in:
be done in one session or several shorter sessions. FileMaker Pro 9\English Extras\Tutorial
or
How to use this tutorial FileMaker Pro 9 Advanced\English Extras\Tutorial
You can also download the sample file by choosing Help menu >
These lessons are based on the membership database of a fictitious
Learning Center. Tutorial files are located with other electronic
travel firm, The Corporate Travelers Club. Corporate travelers who
FileMaker Pro documentation.
are members of this club save their businesses money on travel costs,
and the club’s expenses are offset by an annual membership fee. If you need to start over, replace your existing sample file with a new
FileMaker Pro is used to track the members’ names, addresses, and copy.
membership status, as well as to generate labels and form letters to
contact members.
You must complete these lessons sequentially, as concepts introduced
in early lessons are assumed to be understood in later lessons. The
sample file that you work in progresses through the lessons.
8 FileMaker Pro Tutorial
Mode buttons
Name of layout
Number of the
current record
Fields
4. Click the right page of the book icon to move forward one record
Open a database and move at a time, and click the left page to move back one record at a time.
5. Drag the slider to the right and release to move forward a number
between records of records at one time. Drag the slider to the left and release to move
To open the sample database: backwards a number of records.
1. Open the Tutorial folder on your hard drive. For the tutorial folder You can also click the current record number, type the record
location, see chapter 1, “Where to find the sample file.” number you want, then press Enter (Windows) or Return (Mac OS).
2. Open Sample.fp7.
Tip The Records menu also provides commands to move between
3. Notice that the database is in Browse mode. FileMaker Pro
records. Choose Records menu > Go to Record and choose either
defaults to Browse mode when a database is opened.
Next, Previous, or Specify.
In the status area, notice that there are 29 records and that the first
record is displayed.
12 FileMaker Pro Tutorial
Steve Williams
789 Ninth Avenue
New York, NY 10001
Dear Sophie,
3. Choose the Club List layout from the Layout pop-up menu.
This layout shows each record as one row in a columnar list. Notice
that the Club 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.
Form view
List view
Table view
The Club List layout displays only four of The Club List layout, viewed as a form, then as a list, and finally as a table
the fields present on the Data Entry layout
4. Go to the Layout pop-up menu and return to the Data Entry layout. Switch between form view, list view, and table view in the same
No data has been lost. layout to see how they are different.
1. In the sample file, switch to the Club List layout. You see many
records, displayed as a list.
View your layouts as forms, lists, and tables
2. Choose View menu > View as Form.
You can view your layouts in three different ways: as a form, as a list,
You now see a single record, displayed in the same layout. Only the
and as a table.
viewing option has changed.
1 Form view displays your current layout one record at a time.
3. Choose View menu > View as Table.
1 List view shows your current layout as a list, with one record
appearing beneath another. The View as Table feature allows you to view many records at
once in a grid.
1 Table view shows you many records at one time in a grid.
4. Choose View menu > View as List to return to the original view of
Generally, layouts can be toggled between form view, list view, and the Club List layout.
table view while the database is in Browse mode.
14 FileMaker Pro Tutorial
Find records based on criteria in Your find request returns a found set of two records for the two new
members who live in the United States.
separate fields 5. To find all of the records in your database, choose Records menu >
You can find records that match multiple criteria, for example Show All Records.
members who are both from the United States and are new members. Note It is not necessary to choose Show All Records before
This type of search is commonly referred to as an AND search. To performing a Find, as FileMaker Pro finds records from the entire
perform an AND search in FileMaker Pro, type each search criterion database by default.
directly into the appropriate field in Find mode.
To find all members who live in the United States and are new members:
Find records that match multiple criteria
1. Choose View menu > Find Mode.
Use Find mode to perform more advanced searches. In Find mode, in the same field
you create a find request using the fields in the layout you see. Type Sometimes you need to find records that match more than one
the criteria you want to search for directly into the fields on the criterion in a single field. For example, you may need to find all
request. members located in either New York or London. This type of search
2. Type USA in the Country field. is commonly referred to as an OR search, because your found set will
consist of records that match any one of the find criteria.
3. Type New in the Membership Type field.
To perform an OR search in FileMaker Pro, you will need to use
4. Click the Find button in the status area. multiple find requests.
1 Type the first search criterion into the appropriate field of the first
Find Mode is find request.
currently
selected 1 Create a second find request and enter the second search criterion
in the same field.
When you click the Find button, FileMaker Pro will retrieve all of the
records that match any of the criteria you’ve entered.
To find all members living in New York or London:
Find
button 1. Choose View menu > Find Mode.
2. Type New York in the City field.
3. Choose Requests menu > Add New Request.
Lesson 3 | Finding and sorting records 17
Notice that the status area shows that there are two requests.
Number of requests
Symbols
4. Type London in the City field of this second request. pop-up menu
Your find request should now have 1/1/2008... in the Date Paid
Find records that match a range of criteria field.
in the same field 4. Immediately after the ellipsis (...), type 6/30/2008.
Sometimes, you might want to find records that match a range of
criteria within a single field. For example, you might want to find all
of the records that fall within a one-month period, or locate all of the 5. Click Find.
sales invoices numbered between 500 and 1000.
Your search returns six records, for six members who paid their fees
To perform this type of search in FileMaker Pro, you use a special
within the first six months of the year 2008.
range symbol in your find request to specify the lower and upper
limits of your find criteria.
To find the members who paid their membership fees between Narrow your search
January 1, 2008 and June 30, 2008: Sometimes, you might need to find records that match certain criteria
1. Choose View menu > Find Mode. while at the same time excluding others (for example, finding all of
2. Type 1/1/2008 in the Date Paid field. the records that were added in a given year except for those added in
February, or finding all customers who reside in New York state
3. In the status area, click the Symbols pop-up menu. Select range
except for those in New York City). You can perform these types of
from the list, or type an ellipsis (...).
finds by using a combination of multiple find requests and omitting
certain records.
18 FileMaker Pro Tutorial
Because FileMaker Pro processes multiple find requests in the order Sort your found set
they are created, it is possible to create very specific, layered
searches in this manner. Omitting records in a search does not delete Once you have a found set of records to work with, you might want
them from the database. to sort those records. For example, you might want to display the
records in alphabetical order, or sort them from newest to oldest.
To find the records of members who paid their fees in the first six
To sort records in alphabetical order by the members’ last names:
months of 2008, except for those who paid their fees in February:
1. Go to the Layout pop-up menu and choose the Club List layout.
1. Choose View menu > Find Mode.
This layout will make it easier to see the results of the sorting.
2. Type 1/1/2008 in the Date Paid field.
2. Choose Records menu > Sort Records.
3. In the status area, click the Symbols pop-up menu. Select range
3. If any fields appear in the Sort Order column on the right side of
from the list, or type an ellipsis.
the dialog box, click Clear All.
4. After the ellipsis, type 6/30/2008.
4. In the list of available fields, select Last Name and click Move.
5. Choose Requests menu > Add New Request. Notice that the status
area shows that this is the second request.
6. Type 2/1/2008 in the Date Paid field.
7. In the status area, click the Symbols pop-up menu and select range
from the list, or type an ellipsis.
8. After the ellipsis, type 2/29/2008 in the Date Paid field.
Sort direction buttons
9. Click Omit in the status area to select it. become active when
a field is selected
Notice the sort direction symbol to the right of the Last Namefield
increases in size from left to right. This indicates that when the
Omit checkbox
database is sorted by this field, the data will be in ascending order
(from a to z).
5. Click Sort.
The names in the Club List are now in alphabetical order by last name.
10. Click Find. 6. Choose Records menu > Show All Records.
Your search returns five records for five members who paid their fees 7. When you are finished with this lesson, close the file by choosing
within the first six months of 2008, except the month of February. File menu > Close.
Lesson 3 | Finding and sorting records 19
12. Type Container in the Field Name box, select Container from the The completed record should look like this:
Type list, then click Create.
13. Click OK.
You see the empty fields in a new, blank record. Field labels identify
the fields. Your file is ready for data entry.
Field labels
Create another record
1. Choose Records menu > New Record.
2. As you did for Jane Doe’s record, enter data for John Smith,
who paid 75 dollars on 2/2/2009.
Your database now contains two records. Click the book icon to see
Note FileMaker Pro automatically saves your changes as you work. each record.
Delete a record 6. When you are finished with this lesson, close the file by choosing
File menu > Close.
1. Go to the third record you created.
2. Choose Records menu > Delete Record.
3. Click Delete in the confirmation dialog box.
For more information
You have created a simple database and defined fields, then added,
Notice in the status area that only two records remain in the database.
modified, and deleted records and copied data between records. For
more information, see chapters 2 and 3 in the FileMaker Pro User’s
Guide. You will learn more about entering data in different field
types and by different methods in lesson 7. For further information,
see chapters 2 and 5 in the FileMaker Pro User’s Guide.
24 FileMaker Pro Tutorial
Lesson 5
Customizing what you see
You can enhance the way your data looks by adding graphics and About customizing layouts
other effects.
Design layouts in Layout mode. You can include any combination of
In this lesson, you will:
fields, text, and graphics on a layout. You can change the font and
1 learn how layouts determine what you see color of fields and text and you can change the way data appears in
1 add, resize, and move fields Number or Date fields. For example, you can set a Number field to
1 add a tab panel and change its color include currency notation or you can set a Date field to include the
day of the week with the month, day, and year.
1 display values in a number field as currency
Changes you make in Layout mode affect only the way data appears.
1 change text size, style, and color The data itself remains as it was entered.
1 add graphics
1 see where to find other ways you can customize a layout
Resize, move, and add a field
About layouts and tables Select and resize a field
Each layout is based on a single table, and shows records from that 1. Open Sample Copy.fp7 in the Tutorial folder.
table. If your file contains only one table, all layouts in your file will 2. Choose View menu > Layout Mode.
be based on that table. If your file contains more than one table, you
3. Choose Data Entry from the Layout pop-up menu.
must choose which table your layout will use at the time you create
the layout, although you can change this later if necessary. 4. In Layout mode, click the First Name field to select it.
The table you choose as the basis for your layout is important Click to select
because it determines which fields and records are available for use
on that layout. Fields and records that are not stored in the current
table can still be used, but must be accessed through relationships.
Click and drag the
For more information on relationships, see lesson 10, “Making handle to resize
databases relational.”
5. Drag the handle at the lower-right corner of the field to the left
until the field is smaller, yet large enough to display the longest first
name you expect in your file.
6. Choose View menu > Browse Mode.
26 FileMaker Pro Tutorial
9. Repeat this process for Last Name. 2. Using the Field tool, drag the field to the Contact info tab.
Move a field
1. Choose View menu > Layout Mode.
2. Click inside the Last Name field and drag it beside the First Name field.
In the next steps, you’ll align these fields.
3. Press Shift and click the First Name field to add it to your selection. Field tool
Both the First Name and Last Name fields are selected.
6. Drag the First Name field label above the First Name field. 4. Resize the new field by dragging a right handle so the field is the
same size as the Date Paid field.
7. Experiment with the Align commands to align the field labels with
each other.
8. Choose View menu > Browse Mode to see your results.
Lesson 5 | Customizing what you see 27
5. Select the Text tool. 13. Choose View menu > Browse Mode to see the new field.
14. Choose Records menu > New Record.
You see a year date entered in the Member Since field in the new
Text tool
record. The current year will be entered in the Member Since field in
each subsequent new record.
11. Select the Member Since field, and drag it to align it with the 5. Click Create, then OK.
Date Paid field. You see the new tab panel to the right of the Contact Info tab.
Note You can use the arrow keys on your keyboard to move a
selected layout object in small increments.
12. Select the Member Since field label and repeat step 11.
28 FileMaker Pro Tutorial
6. In the Contact info tab panel, select the Company, Membership Type, Display a number as currency
Fee Paid, Date Paid, and Member Since fields and their labels.
You can display a number as currency, even though only the number
is typed into the field.
Formatting affects only the way data is displayed. It does not change
the data.
1. Choose View menu > Layout Mode.
2. In the Membership info tab panel, select the Fee Paid field.
3. Choose Format menu > Number.
4. Select options as shown in the following Number Format dialog box.
11. Choose View menu > Browse Mode to see your results.
Lesson 5 | Customizing what you see 29
4. Choose the fill color palette. Change text size and color
1. Select the Text tool .
Fill color palette
2. Click the The Corporate Travelers Club text to select the
text block.
4. Choose Layouts menu > New Layout/Report. 10. Click Next again to accept the default sort order.
5. For Layout Name, type List of Members. 11. Select Standard from the list of layout themes, and click Next.
6. Select Columnar list/report for the new layout type and click Next. 12. Click Next on each of the two remaining panels to accept the
defaults.
7. Select the Columnar list/report layout again, then click Next.
13. Click Finish.
8. Double-click each of the following fields in the order you want it
to appear in the list: The data in all records for the fields Last Name, First Name, Company,
and Membership Type appears in the List of Members layout. The
1 Last Name completed layout is displayed in Preview mode, which shows items
1 First Name as they will appear when printed.
1 Company
1 Membership Type
These fields move to the Layout fields list.
32 FileMaker Pro Tutorial
10. Click Next. 4. Select Blank layout for the new layout type.
11. Select View in Layout mode. 5. Click Finish.
12. Click Finish. Because this letter will not use a header or footer, you will delete
13. When you finish viewing your label layout, choose View menu > them now.
Preview Mode. 6. On the layout, click the Header tab, then press Backspace
You see a page of labels as it will print. (Windows) or Delete (Mac OS).
Notice that not all records have the same number of lines of text. 7. Click the Footer tab, then press Backspace (Windows) or Delete
Records with four-line addresses display all lines. In records needing (Mac OS).
only three lines, the extra line is automatically omitted so there is no 8. Drag the Body tab down to about 11 inches.
blank line in the labels. When you release the mouse button, you will see the page boundary.
If you don’t see the page boundary, drag the Body tab down farther.
9. Now drag the Body tab up to just above the page boundary.
The page boundary line will disappear. Dragging the body tab above
Create a form letter the page boundary limits your form letter to a single page.
10. Use the scroll bar at the bottom of the screen to scroll a few
About form letter layouts inches to the right.
A form letter in FileMaker Pro is simply a layout containing text. For You see a heavy dotted line along the right side. This is the right-side
this letter, you will include merge fields so the appropriate company page boundary. Your letter will be within these boundaries.
information appears for the address and salutation, and for the 11. Scroll back all the way to the left.
company name in the body of the letter. A graphic is included that
12. Scroll up to the top of the layout.
depicts the travel club’s logo.
2. Drag a rectangle starting about 2 inches from the top left side of Type the letter
the layout, and ending about 2 inches from the bottom right side, as 1. Press Enter (Windows) or Return (Mac OS) twice to create two
indicated by the page boundary lines. line spaces at the end of the address.
When you release the mouse, the insertion point flashes in the top left 2. Start the salutation line: type Dear and a space.
of the text box. You will type the letter inside this box.
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 elegant salutation.
4. Type a comma and two line spaces.
5. Type the letter:
The Corporate Travelers Club welcomes you and
your company to our organization.
The Text tool We look forward to doing business with you and
is selected hope you have many pleasant trips with us!
If you misspell a word, you’ll see a red dotted line under it. To turn
off this special underlining in this file, choose File menu >
File Options. In the File Options dialog box, click the Spelling tab.
Add the address Clear Indicate questionable words with special underline.
1. Choose Insert menu > Merge Field.
2. Select First Name in the list and click OK.
3. Type a space. Clear this checkbox
4. Choose Insert menu > Merge Field. to turn off underlining
of misspelled words
5. Select Last Name in the list and click OK.
6. Move to the next line (enter a line space):
1 Windows: Press the Enter key above the Shift key on the keyboard.
1 Mac OS: Press Return.
7. Add merge fields for the street address, city, and country, with
appropriate spaces, new lines, and punctuation.
Customize the letter with the company name For more information
1. Click after the word company in the first paragraph. In this lesson, you have created list, label, and form-letter layouts.
2. Type a comma and a space. You can create as many layouts as you like, to organize your
information in any way you like. To learn how to create other
3. Insert a merge field for the company name.
layouts, see lesson 9 in this tutorial and chapter 3 in the
4. Type another comma. FileMaker Pro User’s Guide. For information about turing off
spelling checking in specific fields in a file, see FileMaker Pro Help.
Add the closing
1. Click at the end of the text and enter two line spaces.
2. Type With regards, then enter four line spaces.
3. Type John Jones and a comma.
4. Enter a line space, then type President.
5. Choose View menu > Browse Mode to see your personalized letter,
ready to print, for every record in the database.
6. For Display values from, choose Membership Types. The calculation formula uses values from the current record or
related records. The formula can use values from all field types. You
Select Radio Button Set can use calculations to return text values (for example, combining
the contents of first name and last name fields into a full name field),
dates, times, timestamps, and the contents of container fields.
8. In Browse mode, test your value list and buttons by clicking them.
Automatically enter a serial number 11. Test your new field entry option by choosing Records menu >
New Record. Each time you create a new record, the value in the
FileMaker Pro lets you automatically enter certain types of data—for Member Number field increments by one.
example, incremental numbers—when you create a new record.
12. When you are finished with this lesson, close the file by choosing
Create a field for serial numbers File menu > Close.
Select Serial
number
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 menu structure. Simple scripts can Assign a script to a button
perform a single task, while complex scripts might combine
While buttons are generally more convenient for users, scripts are a
elements (such as user feedback and control) with programming
more powerful feature, allowing you to combine many menu
techniques (such as branching and looping) to make powerful,
commands into a single executable action. Using a button to run a
dynamic instruction sets. script gives you the best of both features.
Create a script to preview the Labels layout To assign the script you just created to the button you created earlier:
1. Choose Data Entry from the Layout pop-up menu.
1. Choose Scripts menu > ScriptMakerTM.
2. Choose View menu > Layout Mode.
2. Click to create a new script.
3. Double-click the button you created earlier in this lesson.
3. In the Script Name text box, type Preview Labels Layout.
4. In the Button Setup dialog box, select the Perform Script script step
4. Select the Go to Layout script step and click the Move button. (You near the top of the list on the left.
can also select and move script steps by double-clicking them.)
5. In the Script Step Options area, select the Labels layout in Specify.
6. From the list on the left, scroll down and select the Enter Preview
Mode script step, and move it over to your script.
The finished
script
7. Close the Edit Script dialog box, click Save, then close 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 5. In the Options area, for Current Script click Specify. Select Preview
switches to Preview mode. Labels Layout from the list of available scripts, and click OK. Leave the
rest of the default button settings as they are and click OK.
Lesson 8 | Automating tasks with buttons and scripts 43
6. Select Report with grouped data, and click Next. 4. Click Next.
5. Move the Membership Type field to the Report categories list to
organize the records by membership type.
Select a theme and create the header and footer Create a script to run this report again
1. Select the Standard theme to set the text size, color, and style of 1. Click Create a script.
the finished report. 2. Leave Script name as it appears, and click Next.
2. Click Next. 3. Click View the report in Preview mode if it is not already selected.
3. Go to the Top center list in the Header area and select 4. Click Finish.
Large Custom Text.
You are in Preview mode so that you can view summarized data on
4. Type Membership Type Report for the header of the report the screen. The members are grouped by their membership type, then
and click OK. further alphabetized by last name within each membership category.
5. Go to the Bottom center list and select Page Number to number the
pages in the report’s footer. Note Depending on experimentation you may have done in earlier
lessons, your finished report may not look like the report pictured
below.
48 FileMaker Pro Tutorial
4. Select and move the Fee Paid field, then Click Next.
5. You want to organize the records by Membership Type, so move
this field to the Report categories list, then Click Next.
6. Move the Last Name field to the Sort order list to sort the records
in each group of membership types alphabetically by members’ last
names.
7. Click Next.
8. Click Next.
50 FileMaker Pro Tutorial
You are in Preview mode so that you can view summarized data on
the screen. The fees collected for each membership type are
subtotaled beneath those members’ names, 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.
Lesson 9 | Creating and running reports 51
2. For Save in, select the Tutorial folder, if it is not already selected.
3. For File Name (Windows) or Save As (Mac OS), type Membership
Fee Report.
4. For Save, choose Records being browsed.
5. Select Create email with file as attachment.
6. Click Save.
FileMaker Pro creates the PDF file and passes it to your email
program. The PDF file appears as an attachment in an email message
that you can then address and send.
7. When you are finished with this lesson, close the file by choosing
File menu > Close.
52 FileMaker Pro Tutorial
Lesson 10
Making databases relational
Relational databases let you easily view related data and streamline When you work with tables in the relationships graph, you are using
data entry. You can enter data once, then view and use that data in them to organize your view into your data. Each table occurrence in
related tables or files. the relationships graph represents a separate view into your data.
In this lesson, you will: When you create a relationship between two tables, you make the
data stored in either table accessible to the other table, according to
1 see how relational databases work
the match fields and the criteria you establish for the relationship.
1 define a relationship
5. In the Members table, click the Company field and drag a line to
1 display data from one related record the Company field in the Companies table.
1 display a list of related records The Company field is the match field.
Display a related record in a file 6. Release the mouse button. You see the relationship you have created.
Display data from a related record 8. Move the fields if necessary, and make the fields large enough to
display all the data they contain. The fields should look like this:
Once you’ve defined the relationship, you can modify a layout to
display data using that relationship. Here, you want to display the
company address.
1. Choose Corporate Account Information from the Layout pop-up menu.
2. Choose View menu > Layout Mode. 9. Choose View menu > Browse Mode and flip through the records to
3. Using the Field tool , drag a field onto the layout. view company addresses from the Companies table in the Corporate
You see the Specify Field dialog box displaying the list of fields in Account Information layout that is based on the Members table.
this table.
4. Click Current Table (“Members”) and choose the Companies table Display a list of related records
from the list.
The relationship you made between the Members and Companies
You now see a list of the fields in the related table Companies. The tables displays data (company addresses) from the Companies table.
colons (::) before each field name show that these are related fields, Next, you will use the same relationship to display data (member
not fields defined in the Members table you are currently working in. names) from the Members table. Relationships are bidirectional.
These related fields will display data from the related table.
Create a portal to display matching records
Choose the table You can add a portal on a layout to display data from related fields.
from the table
pop-up menu 1. Choose the Companies layout from the Layout pop-up menu.
A relationship must always be defined before you can display data
from related records. Now you will use the relationship to the
Members table you defined earlier in this lesson, but the relationship
must be edited to allow the creation of related records.
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.
5. Click ::Company Address.
6. Select Create label (if it’s not already selected), then click OK.
7. Repeat steps 3-6 for ::City and ::Country.
Lesson 10 | Making databases relational 55
4. At the bottom of the dialog box under Members, select Add the fields in the portal
Allow creation of records in this table via this relationship. This lets you
add a name to the Members list. 1. In the Add Fields to Portal dialog box, select the ::First Name field
and move it to the Included fields list.
2. Select and move the ::Last Name field.
3. Click OK.
4. Use the Text tool and create field labels for the First Name and
Last Name field labels above their respective fields in the portal.
The portal should look like this when you are done.
Select this
checkbox 5. Choose View menu > Browse Mode to view your list of members.
5. Click OK, then click OK again to close the Manage Database dialog
box.
6. Use the Book icon or slider to move to the first company record Click here to enter
Displays a list of
a new member members from
(ABC Company). for this company the related table
7. Choose View menu > Layout Mode.
6. Test your new structure: type the name of a new member at ABC
8. Select the Portal tool and draw a box to hold the list of names.
Company, then look to see if it appears in the Data Entry layout. (It
9. In the Portal Setup dialog box, show related records from the will be the last record.)
Members table.
When you added the new member, the relationship automatically
10. Select Show vertical scroll bar. created a record for him or her in the Members table. ABC Company
11. Leave the Initial row value at 1. Change the Number of rows is automatically entered into the match field because the name was
value to 7. added to the portal of the ABC Company record.
12. Click OK. 7. When you are finished with this lesson, close the file by choosing
File menu > Close.
56 FileMaker Pro Tutorial
Sort orders, find requests, import and export field orders, and print Opening a remote file
settings are specific to each user.
A file is considered remote when it is stored on a networked
To enable FileMaker network sharing:
computer other than the computer you are using. After a host opens
1. Open the Tutorial folder on your hard drive. a shared file, up to nine users can open the remote file as clients.
2. Open Sample Copy.fp7. To open a remote file:
Note To enable or change a file’s sharing status in your own files, 1. Choose File menu > Open Remote.
you must open them with an account that has Manage extended 2. For View, select Local Hosts to see a list of hosts.
privilege set access privileges. You will learn about accounts,
passwords, and privilege sets in lesson 12. 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
3. Choose File menu > Sharing > FileMaker Network. Open Remote File dialog box.
4. In the FileMaker Network Settings dialog box, for Network Sharing,
click On. Select to see a
list of hosts
In the TCP/IP Address box, you see the TCP/IP address of your system.
To narrow down
the list, type a
few letters of the
file you are
looking for
Click to
enable Select the file
network you want
sharing to open
Supported import/export file formats 3. For Files of type (Windows) or Show (Mac OS), choose All files
(Windows) or All available (Mac OS), then choose MyFile.fp7.
Most applications store data in their own file format, but most can
MyFile.fp7 is the file you created in lesson 4. This is the source file.
also exchange information using intermediary formats. For example,
FileMaker Pro can import and/or export files in Microsoft Excel, 4. Click Open.
tab-separated text (tab), comma-separated values (csv), and XML, as The Import Field Mapping dialog box appears.
well as other formats.
5. For Target, select Current Table (“Members”).
If you want to exchange data with another program, check the
6. For Import Action, select Add new records.
documentation that came with that program to determine a common
intermediary file format that both FileMaker Pro and the other 7. Make sure that the First Name field in Source Fields is on the same
program support. row as the First Name field in Target Fields.
Note Most file formats do not import or export formatting such as You can move target fields up and down in the list using the slider.
font, size, style, and color. 8. Repeat step 7 for Last Name.
60 FileMaker Pro Tutorial
9. Make sure that an appears between both the First Name fields For more information
and the Last Name fields.
You have learned how to enable file sharing using FileMaker Pro
If you don’t see an between matching fields, click to change
and how to import data into a FileMaker Pro file. To learn more
the setting.
about sharing and importing data in FileMaker Pro, see the
The remaining fields should have a between them. The data in FileMaker Pro User’s Guide and FileMaker Pro Help. For
these fields will not be imported to the target file. information about publishing databases on the web, see the
FileMaker Instant Web Publishing Guide.
Source file to Arrows show that data will
import from import into the fields at right
Target file to
import to
Import action
8. Select User must change password on next login. Create a privilege set
In most cases, an account that is shared by multiple users should not
force a password change upon first login. Instead, you should specify About privilege sets
a password and provide it to the users that need it. Also, the privilege
set for a shared account should not permit password changes because Privilege sets specify a level of access to a database file. In addition,
one user could change the password and lock out all other users who FileMaker Pro allows for extended privilege sets, which determine
share the account. sharing options for files.
9. For Account Status, select Active. Predefined privilege sets
10. For Privilege Set, choose [Read-Only Access]. Each new database file has three predefined privilege sets.
11. For Description, type Customer Service Agent. 1 Full Access permits accessing and changing anything in the file
1 Data Entry Only permits only the viewing and entering of data
1 Read-Only Access permits viewing but not changing data
In every database, there must be at least one account with the Full
Access privilege set. For security reasons, this account should have
Specify a password. You can’t change or delete predefined privilege sets
settings for except to enable or disable their extended privilege sets, but you can
this account
duplicate predefined privilege sets and modify the copy to use it in a
different way.
Extended privilege sets If you’ve set up a database for Sharing, for example on a network or
Extended privilege sets determine the data sharing options that are via Instant Web Publishing, extended privileges are enabled in the
permitted by a privilege set, such as whether a privilege set permits Privilege Set dialog box.
users to open a shared file or view a database in a web browser. 8. Click OK.
Temp Staff appears in the privilege set list. This privilege set can be
Create a custom privilege set
used by one or more accounts.
Suppose your business relies on temporary staff at certain times of 9. Click OK.
the year. This staff needs to have access to your data, but you want
to prevent temporary employees from printing or exporting 10. Click Allow to close the alert.
information in your database. You can create a specific privilege set You see the Confirm Full Access Login dialog box.
for temporary staff that does not allow access to printing or exporting Type Admin for Full Access Account., leave Password blank, then
data. click OK.
1. Choose File menu > Manage > Accounts & Privileges.
11. When you are finished with this lesson, Exit or Quit
2. Click the Privilege Sets tab. FileMaker Pro to close all open files.
3. Select the [Data Entry Only] privilege set, then click Duplicate.
4. Data Entry Only Copy is selected. Click Edit. For more information
5. For Privilege Set Name, type Temp Staff. You have learned how to create accounts, passwords, and assign
6. For Description, type No printing or exporting for temp privilege sets to them. You have also learned how to create custom
staff. privilege sets and how they can be used for specific business reasons.
7. Clear Allow printing and Allow exporting. To learn more about how accounts, passwords, and privilege sets can
protect your databases, see the FileMaker Pro User’s Guide and
FileMaker Pro Help.
Clear Allow
printing and
Allow
exporting
Save a copy of
current file