Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5641 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

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.

Posted

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

Posted

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

Posted

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/

Posted (edited)

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
Posted

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.

This topic is 5641 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.