June 12, 200916 yr 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?
June 12, 200916 yr 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.
June 12, 200916 yr 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
June 12, 200916 yr 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/
June 15, 200916 yr 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 June 15, 200916 yr by Guest
June 15, 200916 yr 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