Database Reference
In-Depth Information
NOTE
If you want to start someone off with some basic criteria, you can specify them right in the
Enter Find Mode step. FileMaker doesn't perform the find now. It just puts her in Find
mode and creates the requests you specify. She's then free to modify or delete them as neces-
sary.
4. Add the Perform Find script step to the script .
Once the script continues, you assume she has added the necessary find requests, so
you're ready to use the Perform Find step with no find requests specified. (Be care-
ful not to choose the Perform Find/Replace script step, which isn't what you want
for this script.)
5. Add another Go to Layout script step to the script. This time, pick the Cus-
tomers layout .
This step takes her back to the Customers layout once FileMaker finds the correct re-
cords.
6. Duplicate the Adjust Window script step, and move it to the end of your script .
You resized the window for the Find layout; now you need to set it back to fit the
Customers layout.
To complete your layout, on the Find Customers layout, create a Find button. You don't even
have to write a script for this button. Since the user is always in the middle of a paused script
when she sees this layout, just set the button with a Resume Script action. If you're feeling
adventuresome, you can also create a More button with a New Record/Request script step.
Finally, the Cancel button should run a new script that switches back to the Customers lay-
out, switches to Browse mode, and adjusts the window (step 2 above). Since your user will
click this button in the middle of a paused script, you need to think about what will happen.
She will go back to the Customers layout in Browse mode, but she'll still be in the middle of
a paused script. That's a recipe for confusion the next time she presses Enter.
When you assign a script to a button, you should think about what happens to any running
script when the button is clicked. Your choices are shown in Figure 12-11 .
In this case, set the Current Script pop-up menu to Exit so the paused script is stopped. That
way, when someone clicks Cancel, she gets back to a normal state.
Search WWH ::




Custom Search