Gregory_I Posted November 25, 2009 Posted November 25, 2009 Problem: If you perform a script with a "Perform Find" command and it does not find any records, FileMaker will return the message "No records match this request. (Cancel, Continue, Modify Find)." I would like to customize this. Instead of: "No records match this request. (Cancel, Continue, Modify Find)." Can I have a custom dialog pop up and say "No records match this request" but with only one button that will say "continue". When the continue button is pressed my script will resume which puts me into browse mode. Any thoughts? Thanks for your help. Greg I
LaRetta Posted November 25, 2009 Posted November 25, 2009 (edited) Hi Greg, To stop FMs automatic message when no records found, preceed it with the script step Set Error Capture [ On ]. In this way, you can trap for the error yourself within the script and continue as you wish. UPDATE: An example of the script then: Enter Find Mode [ pause ] Set Error Capture [ On ] Perform Find [ ] If [ not Get ( FoundCount ) ] Show Custom Dialog [ "Continue" ; "No records match this request." End If ... from here do whatever you may wish but after a find has been performed, you are automatically returned to browse mode. So you could go to another layout, the original layout, etc. Just remember that, if you put Error Capture on and no records are found, FM will leave you with a blank found set with no records so you'll need to show all records afterwards. Hi Barbara! I added the script example before I saw your response. :wink2: Edited November 25, 2009 by Guest Added example and then note to Barbara
bcooney Posted November 25, 2009 Posted November 25, 2009 This thread might help: http://fmforums.com/forum/showtopic.php?tid/209815/fromsearch/1/hl/find/tp/1/
Recommended Posts
This topic is 5476 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