Database Reference
In-Depth Information
Creating a Button
Running the script from the menu saved you a few steps, but you can make it even more con-
venient by attaching the script to a layout object, which then becomes a button. Then
whenever you click the button in Browse mode, the script runs automatically. Here's how:
1. In Layout mode, click the Last Name Field's label to select it .
It's a common convention to click a column label to sort a column, so help your users
out by adopting that principle.
2. Choose Format Button Setup .
The Button Setup window appears ( Figure 4-22 ).
3. In the script step list, click Perform Script .
This “controller” script step lets you run any script you've written by attaching it to a
button.
4. In the Options section of the window, click Specify .
The Specify Script window appears, showing a list of all the scripts in your database.
You've only got one, but it's not uncommon to have hundreds.
5. Click the “Sort by Last Name” script and then click OK until you're back on
your layout .
Your button is ready to use.
Search WWH ::




Custom Search