mswscco Posted June 15, 2010 Posted June 15, 2010 I'm trying to script a constrain that returns the original found set in case no matches are found. With the native Filemaker search, I know clicking on "Cancel" will return you to the previously shown records. With a scripted search, however, I get taken to a screen with no records. I'm using custom dialog boxes and capturing find errors. Thanks!
bruceR Posted June 16, 2010 Posted June 16, 2010 See the example file for "Techniques for preserving, restoring and transferring found sets" in the 8/16/05 presentation here: http://www.kevinfrank.com/demo-files-user-group.html The idea is that you can have separate table occurrences for saved sets. You use GTRR to hold/restore the found set. For small record sets there are other methods that capture all the record ID values. We also have the new snapshot link feature in FileMaker 11 but it requires an external file, it is really too bad it is not natively scriptable.
bruceR Posted June 16, 2010 Posted June 16, 2010 Also see this file, it is a demo of several techniques, one of which is accumulating record ID values by doing a replace on a global field. This is suitable for modest records sets. CFReportingSAV.fp7.zip
mswscco Posted June 25, 2010 Author Posted June 25, 2010 Thanks for the examples. I'll do some experimenting.
mswscco Posted July 9, 2010 Author Posted July 9, 2010 Well, what I ended up doing is just scripting the constrain to search in a new window. Close the new window if the search is invalid and close the old window if the search is true. Seems to work okay for now.
Recommended Posts
This topic is 5249 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