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.

Preventing Orphans

Featured Replies

I'm attempting to use the following script to prevent users from deleting when this would result in orphaned records....

If [

In FileMaker, modify the relationship definition so that the check box "When deleting a record in this file, also delete related records" is checked. This will automatically delete the child records whenever the parent is deleted.

If for whatever reason you do call a FileMaker script from the web, be sure that the FileMaker script doesn't perform any actions that would bring up a dialog box in the FileMaker application. If a dialog box (such as the result of a "show message" step) appears, FileMaker will not be able to respond to web requests until the dialog box is dismissed on the FileMaker Pro application.

  • Author

Thamks Mariano

But I was hopeing to implemenmt a solution which prevents users from deleting child records unless the child recods have been explicitly deleted. Can anyone confirm that this is an impsoibility with FM?

Thanks

Iain

You can unselect "When deleting a record in this file, also delete related records".

A test can be performed to see if any child records exits. The user can then be prompted for the deletion of each of these records. The parent record can then be deleted.

All the best.

Garry

p.s. Look at using [FMP-InlineAction]

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.