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.

No related Record

Featured Replies

Hi,

I have a button pointing to a related record in another d/b in a script.

d/b 1, script1: go to related record; goto external script in d/b 2.

d/b 2, script1: go to Layout Main

The problem is that if there are no matching related records, it still goes to the layout in main to the record it was last at which is wrong. It should have a message saying "No matching records"

Is there a way to prevent this? For example, is there a way to say "If (no related records) then..."?

Thanks!

First try de-bugging your script. Pause it before and right after each find...I've had problems if the field used for the find isn't on the layout used for the find, or other problems may turn up. If there just aren't any 'bugs', check to make sure 'Set Error Capture' is either set to 'off' or isn't in the script at all - this should allow the 'No files found' alert to come up automatically.

If Error Capture is not part of your script, or is already set to 'Off', try setting Error Capture 'On', then use an 'If' statement to display the message you want...something like...

Enter Find Mode

Set Field ["FieldName","Find Me"]

Set Error Capture [On]

Perform Find

If["Status(CurrentError)= 401"]

Show Message ["No Records Found"]

End If

Hope this helps! Good Luck! crazy.gif" border="0

Oops! Sorry, I hit the 'reload'! shocked.gif" border="0 Can't seem to delete it!

[ July 02, 2001: Message edited by: MeltDown ]

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.