Former_Member
8 years agoAccelerator III
Create Document program hangs
I create another document upon creating a document with the below code. I wrote this piece of code for onAfterAdd server event under "Document" type.
I could not create any document and the UI hangs. Please suggest how to create a new document while creating a document manually and attach to it.
Innovator myInnovator = this.getInnovator(); Item doc = myInnovator.newItem("Document","add"); doc.setProperty("item_number","Hello Document"); doc.setProperty("classification","Design Document"); doc = doc.apply(); CO.Utilities.WriteDebug("testcreate", "document created"); return this;