Skip to main content
8-Gravel
February 4, 2013
Question

Problem Report

  • February 4, 2013
  • 2 replies
  • 1003 views

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

2 replies

1-Visitor
February 4, 2013
Code seems ok, wrap a main around it and run it from a command line. Use a Windchill shell to run it. You will get some better feedback an exception or something.

Simon


1-Visitor
February 5, 2013

String sParent = "wt.doc.WTDocument:500463854";


Object Identifier should have prefix of OR: or VR: