Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error Finding Exit Script?

Featured Replies

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.

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.

John.

Your better off learning the field level validation options and preventing undesireable records from being committed in the first place

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.