Jdawg Posted June 12, 2009 Posted June 12, 2009 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?
bcooney Posted June 12, 2009 Posted June 12, 2009 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.
Jdawg Posted June 12, 2009 Author Posted June 12, 2009 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
mr_vodka Posted June 12, 2009 Posted June 12, 2009 I dont understand. Delete Record is Delte record no matter which version you use.
comment Posted June 12, 2009 Posted June 12, 2009 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/
Jdawg Posted June 15, 2009 Author Posted June 15, 2009 (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 June 15, 2009 by Guest
comment Posted June 15, 2009 Posted June 15, 2009 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.
Recommended Posts
This topic is 5990 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 accountSign in
Already have an account? Sign in here.
Sign In Now