Expand my Community achievements bar.

Trying to delete a record but can't

Avatar

Former Community Member
I am trying to delete a record from a data base but the suggested code I have been trying is not working.



xfa.sourceSet.DataConnection.delete();



I got this from the help and page 568 of the Adobe XML Form Object Model Reference.
3 Replies

Avatar

Former Community Member
Try changing the buttons scripting language to FormCalc and use this script instead:



$sourceSet.DataConnection.delete()



Chris

Adobe Enterprise Developer Support

Avatar

Former Community Member
That did it. Why would the FormCalc way work but not the JavaScript way? Is it a bug and going to be fixed?



Again thanks for the help. I think I finally have something I can show some big wigs.

Avatar

Former Community Member
The problem is that delete() is already defined as a method in the JavaScript spec. So it's a bad choice of method names on our part. Hopefully this will get fixed eventually, but it will have to be done in a creative way to keep backwards compatibility.



Chris

Adobe Enterprise Developer Support