Idiot Proofing
Modifying Last Find
Allowing the user to perform the script again is not very good for helping them discover why no records were found in the first place. For instance, if the user had typed into the wrong field or mistyped their find criteria, they might be able to see that if they were allowed to redefine their search.
The best way around this is to offer them the option of redefining the search criteria. This requires the addition of several script steps including Modify Last Find. The new and modified script steps have arrows at the left of each command.

Find w/ option for Modifying Search script n FIND.fp5
The first thing you want to notice is the additional button choices added to the Show Message script step. Instead of just OK, they are now choices for Browse and Modify. The Browse button works the same as the OK button did before. The Modify button runs the script over again using the Perform Script command.
Now you should take a look at the new script steps added to the beginning of the script. There is an If statement that checks to see what layout you are currently on. If the layout is "Find", the script modifies the last find. If the layout name is anything else, the standard Enter Find Mode script is run.
Previous | Next
|