Database Reference
In-Depth Information
Develop the habit of giving your scripts descriptive names so you can remember what
you want them to do.
2. Add a Set Selection script step to the script .
You can find this step under Editing in the list, or, from the View pop-up menu, you
can choose “all by name” to see an alphabetical list. When you add the step, it appears
in your script.
3. Turn on the “Go to target field” checkbox. If necessary, from the table pop-up
menu, choose Customers, choose the Notes field and then click OK .
The Set Selection step in your script updates to show the target field.
TIP
The Customer::Notes field was already created for you, but in the real world you may need
to create a field while you're writing a script. Click the Specify Field Table pop-up menu
and scroll all the way to the bottom, where you'll find the Manage Database command.
4. In the Script Step Options area, click the second Specify button .
It's not labeled, but it's below the first Specify button. When you click it, the Specify
Set Selection window appears.
5. In both boxes (Start Position and End Position), type 0 (zero) and then click OK .
Zero in both boxes tells FileMaker you want the insertion point right at the start of the
field, and you don't want any text selected.
6. Add an Insert Text step to the script and then turn off the “Select entire con-
tents” option .
You don't want the two blank lines you're about to insert to replace everything in the
field.
7. Click the bottom Specify button .
A window simply called Specify appears ( Figure 12-6 ).
8. In the Specify dialog box, add two empty lines (press Return or Enter twice) and
then click OK .
That's the regular Enter key, not the one in the numerical keypad: In this dialog box,
that key just clicks the OK button. Anyway, after pressing it twice, you don't see the
Returns you've typed in the dialog box, but the insertion point blinks down on the
Search WWH ::




Custom Search