Scripting And CommitDelete Record/Request removing data from related recordsPosted by: MaxR / Wednesday, May 16, 2007 – 6:03pm
I had a looping script which took imported data and created new records of different types via relationships in an imported data table. Initially, I scripted this "takeon" loop on the basis of Next Record/Request, exit at end. All tested out OK. Then instead of the Next, I put in a Delete Record/Request with an if to exit when no records remained so that at the end of the process, all Imported data in the Takeon table would be removed. The loop worked fine. The functions also worked fine. But then I discovered the Delete Record/Request would not only delete the imported data record, it performed what seems to be a Revert Record function removing data from record(s) recently created and updated The cause of this was that in some situations the script would change layouts. Changing layouts forced a commit. But in other instances, a commit wasn't getting executed. No commit, no data retained. Simple. ------ Max Rogalsky Filed under: Scripting and Commit
|
Be Notified!Let us tell you when a new video is posted. We'll send you an email with a direct link right to your email inbox.
Make sure and whitelist (or add to your address book editor@filemakermagazine.comFileMaker Reference Tool
* $29.99 is the FMPug member price for a printed copy. 10 Most Recent Videos
|