cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Problem Report

jlittle
6-Contributor

Problem Report

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 2
SimonHeath
4-Participant
(To:jlittle)

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


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


Object Identifier should have prefix of OR: or VR:

Top Tags