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

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

Recommended Posts

Posted

I'm scripting a find using Perform Find. If no records are found, I get the following dialog box:

"No records match this set of find requests" followed by Cancel, Continue, and Modify Find buttons.

I would like to have a custom dialog box appear which says, "No records found", and the script then stops. I don't like the standard dialog box above, primarily because if the user selects cancel, the script stops at a bad step in my particular script, and if they select continue they end up in the wrong layout.

I have tried:

Perform find

If (Get (found count) = 0)

Show custom dialog ["No records found"]

Halt script

End if

But I still get the above dialog box if the Perform find comes up with an empty set.

Any suggestions would be greatly appreciated. Thanks.

Posted

We just answered this question two days ago, Click Here to see

You need to use the script step [color:blue]Set Error Capture On and trap for the error [color:blue]401

HTH

Lee

This topic is 6774 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.