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.

Deleting portal row & related record

Featured Replies

ok. I know this works because it works fine in my other database but for some reason in this database i'm working on, i can't get the delete portal row script to work. I have a button at the end of my portal row(s) that has the script Delete Portal Row (that's the only step in that script). In the portal set up i checked the "Allow Deletion of portal records" box and also in the Relationship i checked the "when deleting record..delete related records". But, for some reason when i use this script, it deletes ALL the portal records (in that one portal, that is) AND THE WHOLE "parent" record that contains the portal. This database is set up just like another one I have and it works fine in that database. HELP!

You either:

Have deletion of portal records turned off for that portal.

Are not actually in the portal when you run the script.

Are not using the delete portal row step, but are using the normal delete script step.

What is happening is that you are actually deleting the parent record, which in turn is deleting the portal records.

  • Author

None of your suggestions seem to be the problem.

I'm in the portal, i have the delete portal records checked and i'm using the delete portal record in my script - it even asks if i'm sure that i want to delete the ONE related record when i run it. frown.gif" border="0

I assume the file with the portal is A and the related file is B. Do you have a relationship going from B to A with the option to delete related records in A when a record in B is deleted?

If you're in A and you delete a portal row (a record in :, then the record in A that's related to that portal row will get deleted which in turn will cause all of the records related to it in B to get deleted.

Solution: uncheck that box in B.

  • Author

Thanks Thom! That was it. It works fine now. Thanks so much! smile.gif" border="0

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.