aravinth_r - Friday, June 8, 2012 7:51 AM:
I have written a C# method to be executed during the onBeforeAdd or onBeforeUpdate server events of the "Part BOM" relationship. Method fails at some point which is not known. I need to put some logs equivalent to System.out.println of Java so that I can know where the method had failed. How to do this?
When i see the programmer's guide, I do not get it for the C# method. It is present only for the VB script code.
Thanks!
Regards, Aravinth
PeterSchroer - Friday, June 8, 2012 8:02 AM:
Aravinth,
I use 2 techniques when troubleshooting Server methods
1) easy way to save the contents of an Item (it's DOM actually). this.dom.save(CCO.Server.Mappath("./temp/this.xml")); this will save the DOM object of the "this" object to a file in the ./innovator/server/temp folder good way to inspect the DOM contents !
2) CCO.Utilities.WriteDebug("filename","message"); this will write to (append) the "message" to a Text File named "filename" in the ./innovator/server/temp folder
Peter.