Hi,
I am new to aras programming. I am trying to fetch the lock status of the current item in the method.
Innovator myInnovator = this.getInnovator();
if (this.fetchLockStatus() != 0) {
Item myResult = myInnovator.newError("Please unlock MD!");
CCO.Utilities.WriteDebug("xmltest","MD File is locked, exiting");
return myResult;
}
string MDID = "";
MDID = this.getID();
After this portion of of the method is ran, an exception is thrown stating that the 'ID is not set'. Please let me know how I can correct this error. Thank you for your help.