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.

Script errantly deletes records in v10

Featured Replies

A script that works fine on v9.3 doesn't work correctly with v10.

This script, designed to delete related records in a portal, is also deleting the parent record when running it on a mac with v10. Any suggestions? Is this a bug with v10?

That would be some bug, huh? Can we see the script? Just print to PDF and copy/paste the script or screen shot. Or post a sample file.

  • Author

Thanks for your reply. I've attached a PDF of the script. Line 6 is likely where the problem is occuring with version 10. This has been working fine for 2 years with version 9.3.

Script.pdf

I dont understand. Delete Record is Delte record no matter which version you use.

I cannot really understand the script out of any context, but I suggest reading:

http://fmforums.com/forum/showtopic.php?tid/202374/

http://fmforums.com/forum/showtopic.php?tid/201204/

  • Author

Comment,

Thank you for turning me onto those threads. They are dealing with the issue that I'm dealing with. What I don't understand is why it all of a sudden deletes the parent record with v10 but it's never done that with v8.5 and 9.3.

Does "Delete Portal Row" actually delete that child record, or just remove the row from the portal?

My goal is to leave the parent record in-tact, but delete the child record within the portal.

Edited by Guest

Delete Portal Row[] actually deletes the child record. It shouldn't affect the parent record (unless you have enabled cascaded delete in the relationship's definition).

Note that your script uses BOTH Delete Record/Request[] and Delete Portal Row[] in tandem.

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.