Database Reference
In-Depth Information
Figure 17-13. Your finished sort script should look like this example. It has three branches (one for
each of the possible sort orders). Now you need to add buttons on the Customer List layout to run
this script.
Now it's time to add buttons to the Customers List layout to make it easy for people to run
the script.
1. Click the Last Name field label to select it and then choose Format Button
Setup .
The Specify Button dialog box appears.
2. Choose the Perform Script button command and then click Specify. In the Speci-
fy Script window, select Sort Customer List .
That's the branching sort script you created in the last tutorial.
3. In the “Optional script parameter” box, type Last Name and then click OK until
you're back on the Customers layout .
The first test of the Sort Customers script— Get(ScriptParameter) = “Last
Name” —is true when people run it by clicking this button.
Search WWH ::




Custom Search