Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. 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: