Quantcast
Channel: aras PLM community
Viewing all articles
Browse latest Browse all 1103

Cannot get Item ID from this.getID()

$
0
0

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.


Viewing all articles
Browse latest Browse all 1103

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>