John Chamberlain Posted October 15, 2014 Posted October 15, 2014 Can someone point me to some examples of exit scripts? I need a script that will (1) find any empty records and delete them, and (2) will locate records that may have required fields missingl, then exit the script on the proper record and layout, so that corrections may be made.
OlgerDiekstra Posted October 16, 2014 Posted October 16, 2014 How about the below? go to layout ["layout that has fields to correct entries"] if [isEmpty ( $$Looping) go to record/request/page [first] endif set variable $$Looping="yes" loop set variable $Correct="yes" // check some fields set variable if [field1 ≠ HasValidValue; "no"; $Correct) set variable if [field2 ≠ HasValidValue; "no"; $Correct) if [$Correct="no" exit script endif go to record/request/page [next; exit after last] end loop set variable $$Looping="" This would allow you to stop the loop, correct the error, then push the button that triggers the script again and it will resume. You could add some additional safety measures in to make sure records arent skipped while correcting errors.
Kris M Posted October 16, 2014 Posted October 16, 2014 John. Your better off learning the field level validation options and preventing undesireable records from being committed in the first place
Recommended Posts
This topic is 3691 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