Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Trying to generate a Problem Report associated with a WTDocument, but cannot get the document objectID. Here is the snippet of code:
String sParent = "wt.doc.WTDocument:500463854";
wt.doc.WTDocument wtdoc = null;
ReferenceFactory rf = new ReferenceFactory();
WTReference ref = rf.getReference(sParent);
wtdoc = (wt.doc.WTDocument)ref.getObject();
The last line is not working. I get no error, but nothing happens either. Any help would be appreciated. Windchill 10.0 M040.
Thanks,
James Little
String sParent = "wt.doc.WTDocument:500463854";
Object Identifier should have prefix of OR: or VR:
