21 Secrets of Filemaker
21 Secrets of Filemaker
You’ll also find hundreds more tips online within the FileMaker Te-
chInfo Knowledge Base at:
www.filemaker.com/support/techinfo, and FileMaker Advisor Magazine at:
http://filemakeradvisor.com.
#4. Establish a ‘main’ file for your multi-file solutions with opener routines.
Main files, even if they’re a part of your data structure, are useful if only to put all the stuff that might arbitrarily live
anywhere in a single, central location. This will help keep you organized and will certainly help others understand
your system if you ever need to share with other developers.
• Use a ‘main’ file to act as menu and open all other files in a solution. Set other files to ‘Multi User Hidden’, so
that only the main file appears in the Hosts dialog.
• This main file need not be an additional file... you can certainly have it be one of your data tables as well.
Regardless of whether or not you use the all-interface-in-one style of development, or use the distributed UI
approach, it’s a good idea to give users a “place to start.”
• Put globals and other “central” resources in your main file. This will help you stay organized.
Use plenty of white space and use nesting (by inserting hard returns and spaces) to make calculations more readable.You
may also want to put error messages in your assumptions as you build a complex calculation. They’re handy to leave in
the formula in the chance that you need to edit in the future
#7. Double-click layout tools to “lock” their use, and control-click fields to set defaults
Doing layout work is often just busy work.You’ll end up moving things by a pixel here, adding a field there, etc. It’s a pain to
have to constantly be formatting fields and juggling tools with your mouse. These shortcuts should help:
• If you double-click any layout tool, your selected tool will remain that which you double-clicked. For example, if
you have multiple text labels to place on a layout, simple double-click the “A” text tool.
• You can also control-click any field on your layout to make that the default style for all new fields you add to a
given database.
#6. Keep your files isolated and don’t forget proper copying rules.
Even given how simple FileMaker Pro’s best practices for deployment are, we’re never surprised when we discover
problems with files that have been improperly closed or copied. Learn these simple habits, and you’ll not have to worry
about file corruption. Never copy files while they are open (including zipping/stuffing). This is especially true for files on
FileMaker Server. Under no circumstances should you have sharing turned on for the FileMaker Server folder, nor should
you ever copy files while they are being hosted. This will lead to possible corruption.
• As you develop or deploy on FileMaker Server, be sure to archive and backup your files. Be sure to burn them
to CDs or compress them (zip, sit, etc.) and remove the actual .fp5 files from your network. FileMaker Pro file
references can get tangled if you have multiple copies of your solution sitting on your local computer.
If your files crash as you’re developing, always go to a backup.You’ll lose a bit of work that you might otherwise be able
to recover, but be conservative and make sure your files are in perfect shape.
21 Secrets of FileMaker Pro
If the contact’s name is “Agent Smith” their multi-key will look like this:
21 Secrets of FileMaker Pro
• You can then use a global field on the left side of the relationship to form a match. If the user types ‘a’
into the global, then any contact name that starts with ‘a’ will appear in our portal. If they type ‘agent’, then
matching records must begin with ‘agent’; if they type ‘agent smith’ then only contacts with that name will
appear in the portal. FileMaker Pro matches the related record on any line of the multi-key. Records that
match more than once will only appear in the portal once. Note also that we included a value that will let us
match all contact records ‘-All-‘.
© 2003 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc., registered in the U.S. and other countries.
ScriptMaker and the file folder logo are trademarks of FileMaker, Inc. Mac is a trademark of Apple Computer, Inc. registered in
the U.S. and other countries. The “Built for Mac OS X” logo is a trademark of Apple Computer, Inc. used under license. Microsoft,
Windows, and the Windows logo are registered trademarks of Microsoft Corporation in the United States and other countries. All
other Trademarks are the property of their respective owners. All persons and companies listed in examples are purely fictitious
and any resemblance to existing persons and companies is purely coincidental. Product features and specifications are subject to
change without notice.