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.

Featured Replies

I have a script to Go To Related Record:

Open File ["Electronic Recording"]

Go to Related Record [show only related records; From table: "Electronic Recording Proceeding";

External; Using layout: <Current Layout>]

(If I don't use the Open File step, the file opens at 100% zoom, which is not the zoom level I want.)

Here's my question. When the script runs and no related record exists, the result is an empty record. Is there a way to make a custom dialog appear saying no related record exists, and then an "OK" button to close the file?

Thanks,

Kevin

You can either test for related records first, or attempt to GTRR and trap for the error.


If[ IsEmpty( related::field ) ]

  // show dialog or whatever

End If




vs.





Set Error Capture ( On )

Go to Related Record [ ... ]

If[ Get(LastError) <> 0 ]

  // show dialog or whatever

End If

I remember recently discussing whether one way was preferable, but I can't locate the discussion at the moment. I usually do it the first way because it's simpler, but it seems to me that somebody had a reason to prefer the latter method. Can anyone remind me what that reason might be?

  • Author

Thank you, Fitch. I used your second suggestion and it worked perfectly.

Thanks for saving me from a few more grey hairs.

Kevin

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.