Skip 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.

Record lock trapping

Featured Replies

I'm not sure if this is the right forum for this, but as the problem hapens during a script run, I might as well.

There are times in a served environment (FM6) when I need to run some replace scripts on a set of records. When this occurs while another using is on one of the records, I get a "cannot modify" halt.

Somewhere I ran across a technique for trapping this error and saving the info as to which record was being hung, then proceeding with the rest of the script. Afterward, either the record being locked could be found (key field stored in a global?) or the script would rerun on just the locked record.

I searched the forum every which way I could think of and drew a blank. Any pointers?

Steve Brown

To trap for errors in scripts you must turn on error trapping when you need it with "Set Error Capture" step.

Any errors generated only exist to the next script step so you must trap for it immediately using the "Status(CurrentError)" function. You can find the list of error codes in the FMP help system under "Status(CurrentError)"

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.