jgrunschel Posted May 11, 2009 Posted May 11, 2009 Hello, I'm using a pop-up window that enters find mode as a method to search the database. I'm not very fond of pop-up windows, as they can get "lost" if the user accidentally clicks outside of them. So, I'm using the "pause script" script step to make the pop-up "modal". There are two buttons within the pop-up: "Cancel" and "Search". "Cancel" resumes the script and closes the pop-up, while "Search" performs the find and changes the pop-up layout to display the found set as a list. I also have keystroke triggers, set on every field within the search layout, to trap the return and escape keys. "Return" is supposed to be like clicking the "Search" button and "Escape" like clicking the "Cancel" button. Clicking the "Search" button works fine, but pressing "Enter" seems to continue the paused script, such that, when the results are displayed, the window is no longer "modal". Hopefully my explanation makes sense, but I've also attached a lean version of my database to play with. Thanks for any advice or help you can give. ScriptTriggerProblem.zip
jgrunschel Posted May 12, 2009 Author Posted May 12, 2009 Nevermind. I didn't know that performing a find would cause a paused script to continue. Silly newbie mistake : . Also, I found a much better method for handling my search, by John Mark Osborne, Here, under "Ultimate Find".
Vaughan Posted May 12, 2009 Posted May 12, 2009 I use a loop to keep the use in the script. Use End Loop to let the script exit when the necessary conditions have been met, or make the button on the layout that the user clicks EXIT the current script.
Recommended Posts
This topic is 5948 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