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.

how to use ScribeSetErrorCapture ( errorCapture )

Featured Replies

  • Newbies

I don't know how to use it.

 

In a calculated field? in a variable ?

Can I have a sample!

 

thanks

Set error Capture is used at the beginning of a script typically to suppress native error reporting when a script runs. To actually capture an error though you need to use get(last error) like this

Error capture on

User Abort off

#

#

#

Go to related record

Set variable ($_err; (get(last error)))

If ($_err)

Exit script ($_err)

End

More ....

Nuos has the right idea, but his example script shows how to implement Filemaker-level error capture. For Scribe (and all of our plugins), it works similarly, but ScribeSetErrorCapture is an external function, not a script step, and therefore can only be run in a calculation. We generally recommend using a Set Variable script step and running any plugin functions inside that calculation. So, for a simple example:

Set Variable[$result; ScribeSetErrorCapture(1)]
Set Variable[$result; <Perform Scribe functions here>]
If [ $result = "ERROR" ]
Show Custom Dialog [ "Error with Scribe: " & ScribeLastError ]
End If
Set Variable[$result; ScribeSetErrorCapture(0)]

With error capture turned off, any error that occurs in our plugin functions will pop up a dialog with the error message, and the function will return "ERROR". With error capture turned on, these dialogs will not pop up by default, and errors should be handled as in the example (testing the result for "ERROR", and grabbing the error message using the ScribeLastError function)

 

Please let me know if you have any more questions

Create an account or sign in to comment

Important Information

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

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.