Forum Discussion
Former_Member
8 years agoAccelerator III
Yes Number is String property and it's not required property as it's said to Sequence. I have a server event to set the number based on the 'classification' property onBeforeAdd event, the following code set the number
Innovator inn = this.getInnovator();
string type = this.getProperty("classification", "");
if (type != null && type.Equals("Design Document")) {
this.setProperty("item_number", inn.getNextSequence("Design Document"));
} else if (type != null && type.Equals("Engineering Document")) {
this.setProperty("item_number", inn.getNextSequence("Engineering Document"));
} else if (type != null && type.Equals("Supplier Document")) {
this.setProperty("item_number", inn.getNextSequence("Supplier Document"));
}else{
this.setProperty("item_number", inn.getNextSequence("Default Document"));
}
return this;
there is no required property. and when I click new document and save it, a document number is set and the document is added.
AML document? I could not see an debug log. and the UI is hanging