Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5476 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted (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. :smile2:

Hi Barbara! I added the script example before I saw your response. :wink2:

Edited by Guest
Added example and then note to Barbara
Posted

This thread might help: http://fmforums.com/forum/showtopic.php?tid/209815/fromsearch/1/hl/find/tp/1/

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.