Tutorial
Table Of Contents
- Lesson 1 FileMaker Pro basics
- Lesson 2 Browsing information
- Lesson 3 Finding and sorting records
- Lesson 4 Creating a database and entering records
- Lesson 5 Customizing what you see
- Lesson 6 Creating lists, mailing labels, and form letters
- Lesson 7 Simplifying data entry
- Lesson 8 Automating tasks with buttons and scripts
- Lesson 9 Creating and running reports
- Lesson 10 Making databases relational
- Lesson 11 Keeping your data safe
Automating tasks with buttons and scripts 45
7. From the list on the left, scroll down and select the Enter Preview
Mode
script step, and move it over to your script.
8. Click OK, then click OK again to close the dialog box.
9. To run the script you have just created, choose Scripts menu >
Preview Labels Layout. FileMaker Pro displays the Labels layout and
switches to Preview mode.
Assign a script to a button
While buttons are generally more convenient for users, scripts are a
more powerful feature, allowing you to combine many menu
commands into a single executable action. Using a button to run a
script gives you the best of both features.
To assign the script you just created to the button you created earlier:
1. In MyFile08.fp7, choose Data Entry from the Layout pop-up menu.
2. Choose View menu > Layout Mode.
3. Double-click the button you created earlier in this lesson.
4. In the Specify Button dialog box, select the Perform Script script
step from the top of the list on the left.
In the Options area, for Current Script click Specify. Select Preview
Labels Layout
from the list of available scripts, and click OK. Leave
the rest of the default button settings as they are and click
OK.
If you have not already created this script, follow the steps described
in
“Create a script to preview the Labels Layout” on page 44.
5. Click OK to save this button.
Specify a target
layout for the
script step
The finished
script