Item itmid=this.getProperty(“item_number”);With:
Item itmid=this.getProperty(“item_number”, "");
Innovator inn=this.getInnovator();
string itmid=this.getProperty("item_number"); // <-- getProperty returns a string
//return this.getInnovator().newError("hello");
if(itmid.Length == 20)
{
return this.getInnovator().newError("Invalid Value!");
}
return this; // <-- Server-side methods always need to return an Item
Chris
___________________________
Christopher Gillis
Aras Labs Software Engineer