Database Reference
In-Depth Information
TIP
The Scripts menu also has a Save All Scripts command (yes, you can work on more than
one script at a time) and a Revert Script command. These commands have no keyboard
shortcuts, but you don't have to click the Close box on an Edit Script window to handle your
save/revert chores.
10. Click Perform .
The Manage Scripts window stays open, and your database window comes forward to
show you the results of your script.
This new, simpler script does everything the first script did. It's simpler because you didn't
have to script all the steps involved in performing a find: Enter Find Mode ; Set Field ;
Perform Find . Instead, you let FileMaker do all that in one Perform Find step. You'll find
that you can reduce many of FileMaker's common multistep operations to a single step.
Shortcuts to the Edit Script Window
When you wrote the Find Unpaid Invoices script in the previous section, you got to the Man-
age Scripts window by choosing Scripts→Manage Scripts or File→Manage→Scripts. These
multiple choices aren't just redundancy—they're meant to give you flexibility. In fact, you
can get to the Manage Scripts window through other windows, too.
Say you want to create a button on the Customer layout that finds unpaid invoices for the
customer you're viewing, so you create a button. In the Button Setup dialog box, you select
the Perform Script step and then click Specify. The Specify Script window appears, but
the script you need isn't there (that's because you haven't written it yet).
Do you have to slow your developing momentum while closing all those windows and then
head up to the Scripts menu? Nope. You can get a direct line to the Edit Scripts window us-
ing the “+” button at the bottom of the Specify Script window ( Figure 11-10 ) .
Search WWH ::




Custom Search