User manual
Table Of Contents
- Preface Learning how to use FileMakerPro
- Chapter 1 FileMaker Pro basics
- Chapter 2 Adding and viewing data
- Chapter 3 Finding and sorting information
- Finding records
- Finding text and characters
- Finding exact matches in text fields
- Finding numbers, dates, and times
- Finding ranges of information
- Finding data in related fields
- Finding records that match multiple criteria
- Finding empty or non-empty fields
- Finding duplicates
- Finding all records except those matching criteria
- Hiding records from a found set and viewing hidden records
- Viewing, repeating, or changing the last find
- Sorting records
- Finding records
- Chapter 4 Previewing and printing information
- Chapter 5 Creating a database
- Chapter 6 Creating and managing layouts and reports
- Chapter 7 Customizing layouts
- Chapter 8 Working with related files
- Chapter 9 Protecting databases with passwords and groups
- Chapter 10 Creating scripts to automate tasks
- About scripts
- Creating scripts: an overview
- About ScriptMaker steps
- Control script steps
- Navigation script steps
- Sort, find, and print script steps
- Editing script steps
- Fields script steps
- Records script steps
- Windows script steps
- Files script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Changing scripts
- Duplicating, renaming, or deleting scripts
- Importing scripts
- Listing scripts in the Scripts menu
- Using buttons with scripts
- Example of a ScriptMaker script
- Chapter 11 Using formulas and functions
- Chapter 12 Importing and exporting data
- Chapter 13 Sharing databases on a network
- Chapter 14 Publishing databases on the Web
- About publishing databases on the Web
- How users work with databases on the Web
- What you need to publish databasesontheWeb
- Publishing databases on the Web: an overview
- Enabling FileMaker Pro Web Companion
- Configuring FileMaker Pro WebCompanion
- Enabling Web Companion sharing
- Setting up browser views
- Testing your published database
- About browser views for web publishing
- Chapter 15 Using ODBC with FileMakerPro
- Appendix A Customizing FileMaker Pro
- Appendix B Backing up and recovering files
- Appendix C FileMaker Pro Quick Reference (Windows)
- Appendix D FileMaker Pro Quick Reference (Mac OS)
- Index
B-2
FileMaker Pro User’s Guide
4. Enter the following script:
Set Error Capture [On]
Show message [“Click to reset counter to zero”]
{default button = “No”, 2nd button = “yes”}
If [“Status (CurrentMessageChoice)=2”]
Set Field [“Count Field”, “0”]
Else
Set Field [“Count Field”, “Count Field + 1”]
If [“Count Field > 4”]
Save a copy as [“Backup Copy”]
Set Field [“Count Field”, “0”]
End if
End if
5.
After adding all the steps above, click OK.
6. Click Done.
7. Choose Edit menu > Preferences > Document.
8. In the General tab (Windows) or the General pop-up menu
(Mac OS), under When closing <solution filename>, select the Perform
script checkbox.
9. Select the script Backup.
10. Click Done.
11. Close the solution file.
Once these steps are executed, you will have a script that will create
a backup of your file every fifth time you close the file.
Maintaining files
While consistent backups are the most important form of regular
maintenance you can perform on your databases, most heavily used
databases are also good candidates for routine compression.
When you have FileMaker Pro save a compressed copy,
FileMaker Pro rewrites the entire database, fitting as much data into
each block as is possible. This procedure not only reclaims unused
space in the file, it also rebuilds the file’s structure. Compression can
be time-consuming if the file is large, however, and might be best
accomplished as an overnight task.
Saving a compressed copy
1. Make sure that you have enough room on your intended storage
media.
While a compressed copy may be significantly smaller than an
uncompressed copy, we strongly recommend that you have at least
as much free space on your intended media as the size of your
uncompressed file. It is not a good idea to fill any storage media up
to its maximum capacity.
2. Choose File menu > Save a Copy As.
3. Choose compressed copy (smaller) from the Save a drop-down list
(Windows) or Type pop-up menu (Mac OS). You can also change the
default name of the file and/or its location at this time.
4. Click Save.
Understanding file damage
In order to understand how corruption occurs, it is useful to know
how FileMaker Pro manages data.
FileMaker Pro is a disk-based application, so it does not need to load
the entire database into RAM as the file is opened. Instead, the
application transfers data as needed from the hard drive to RAM and
back; as the file is used, updated data is written from data buffers in
RAM to the hard drive. The most common cause of file damage is an
unexpected application termination. In most cases, an unexpected