Chapter 9. Extending the Interface with Scripts
Although you're pretty comfortable with FileMaker, you may not be the only person who uses your files. Other people may not be as savvy as you are, or may be such occasional users that they never memorize the FileMaker commands. You can make it easier for others to work with your files by creating a custom interface for them.This may seem a little daunting. After all, real interface design is pretty challenging, since it involves both graphics and programming skills. But you don't have to have strong skills in either of these areas to create a mini-interface of common tasks in FileMaker. Scripts and buttons make it easy to create navigation bars, buttons, and menus to insulate others from commandsand also protect your database from well-intentioned errors. Even if everyone who uses the database is aFileMaker whiz, they'll appreciate these shortcuts. Clicking a single button is always easier than accessing one (or more) menu commands.Making a Find Layout with a ScriptBecause setting up a Find request takes time and typing, you'll frequently find yourself creating scripts that hold your typical search criteria. But you can't always predict what the criteria will be, although you might be able to predict the category. For example, every once in a while you may want to print out a record of your receivables. For those occasions you can create a generic date-search script with its own layout that generates a report when it's done. Once you have the script, you can run it from the menu bar or from any layout that contains a script button you create.