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

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

Recommended Posts

Posted

This is going to seem very trivial, but my users have asked for it, so here goes:

I have an opening script that searches for duplicate or incomplete records. Most of the time there are no records to correct.

Is there a way to suppress the "No Records Found" message, and just exit the script if there are no records to display?

Posted

Use Set Error Capture On before the Find.

Use If [ get (foundcount)=0]

in your script to probably Go to a Layout.

  • 3 weeks later...
Posted

I have a script that does exactly this and works well.

Our situation requires it to go a step further in that it creates a new record once it arrives at the new layout.

What I'd really like it to do is even one more step and set two fields of that new record with the data entered into those fields in the original find request.

Any thoughts?

Posted

You'd need to capture their search criteria. One way is to have them enter criteria in global fields. Then the Find button would run a script that enters find mode, sets the fields to the globals, and performs find. If no recs are found, go to layout, new record and use set field to set the desired fields to the globals.

  • 2 weeks later...
Posted

That's what I've been trying but I must have a flaw in my logic because I've spent hours on this now and just can't make it work.

I hate asking for someone to do the work for me but is there an example script you can show me?

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