Skip to main content
1-Visitor
April 13, 2016
Question

URL to the latest version of a WTDocument?

  • April 13, 2016
  • 4 replies
  • 5358 views

All,

I'm trying to create hyperlinks to WTDocuments in a SharePoint site, and would like to find a way for the link to always point to the latest version of the WTDocument in Windchill (10.1 M040, about to go to 10.2 M030)..., is this possible?

Thanks in advance,

Alex

4 replies

2-Explorer
April 14, 2016

‌Hi Alex,

Out of the box, this is not possible. You need to create a JSP which will receive the document number and  direct to the latest version of wtdocument. From sharepoint, you can always refer the URL as httl://windchill.server.com/Windchill/customSearch.jsp?n=documentnumber. This is an easy customization and jsp is deployed outside Windchill code, so a non intrusive customization

Thank you

Binesh Kumar

1-Visitor
April 18, 2016

Thanks for the info Binesh.

2-Explorer
April 14, 2016

There is an ootb servlet that will redirect your browser and open the latest primary content:

.../Windchill/servlet/AttachmentsURLRedirectServlet?oid=VR:wt.doc.WTDocument:347057

There may also be a way to capture the url of the content that is always the latest.  We are running 10.2 M030 now.

There is also a PTC document that explains this:

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS70348&art_lang=en&posno=1&q=latest%20content&source=search

Even though it says it is applicable to Windchill 9.1 and 10.1 all Datecodes, it still works with 10.2 M030.

1-Visitor
April 18, 2016

Thanks for the info Theresa