Problems with script for repeating a search within a found set
This is the script I use for searching within a found set of records, providing a custom error message if nothing is found, and allowing the user to run a new search or go back to the list of records.
There are two problems I am running into:
1) If the user hits cancel, it does not return them to the previously displayed list of Found Records, but runs the script that returns them to a list of all the "observation" records, which are just records with a particular flag.
2) If the user hits "OK" to run a new search, the script is actually then running the new search from the found set of records from the previous search, which is likely empty.
So basically this script doesn't work very well. What I would like to be able to do is for a user to be able to run a new search from the original list of found records they ran the search from, or to go back to the list of found records they ran the search from. However, I am not sure if there is any way to save a users state, or list of found records, in any way, to allow the user to easily view the records they were just looking at.
Any help would be appreciated.