John Chamberlain Posted March 7, 2010 Posted March 7, 2010 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?
bcooney Posted March 7, 2010 Posted March 7, 2010 Use Set Error Capture On before the Find. Use If [ get (foundcount)=0] in your script to probably Go to a Layout.
millmaine Posted March 26, 2010 Posted March 26, 2010 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?
bcooney Posted March 26, 2010 Posted March 26, 2010 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.
millmaine Posted April 4, 2010 Posted April 4, 2010 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?
John Chamberlain Posted April 5, 2010 Author Posted April 5, 2010 Sorry for that - User Name is John, and no password is necessary
John Chamberlain Posted April 5, 2010 Author Posted April 5, 2010 Even more embarrassing Password is Gracie!
millmaine Posted April 9, 2010 Posted April 9, 2010 Thanks, I got there in the end but this is nice and elegant and helps a lot.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now