Mandu Posted October 2, 2004 Posted October 2, 2004 I'm trying to script a Find. Nothing elaborate - you click a button labeled "Find" and it runs a script which goes to a layout, enters Find mode with Pause, and performs the Find when you hit <Return>. Error capture is on, and if there is an error I put up a dialog and then (recursively) perform this script. The layout for entering find criteria has a "Cancel" button which, if pressed, runs a script that deletes the request, does a Show All, and goes to the default layout. When I run the Cancel script, I return to the default layout, but the Status Area still shows Script: Continue / Cancel. What is strange is that I have a nearly identical procedure in another database that works correctly (i.e. when you click cancel, you return to the default layout *without* Script: Continue / Cancel. Whatever difference there is isn't obvious to me looking at the scripts, but I've attached them. Thank you, and I'll gladly post any additional details that may be relevant. Chap Findbug.txt
Ender Posted October 2, 2004 Posted October 2, 2004 Try this Chap: Add an Exit Script step after your recursive call to Perform Script [ Subscripts, "Find" ] You don't need to Delete the requests before Show All Records in your Cancel script, but the button for that script (and those other buttons) should be set to Halt Script (instead of Pause.)
Mandu Posted October 4, 2004 Author Posted October 4, 2004 I'll be...! That was the difference - one Cancel button was set to Halt script, and the other was set to Pause script. Time to learn what *that* does. Thanks kindly. Chap
-Queue- Posted October 4, 2004 Posted October 4, 2004 For reference, Pause temporarily pauses the currently-running script, and resumes it after the interrupting script has finished. Exit aborts the currently-running script but returns control to any scripts that may have called it. Halt aborts all scripts.
Recommended Posts
This topic is 7358 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now