Skip to main content
10-Marble
November 18, 2024
Solved

How to use WTPartReferenceLink using Windchill REST Services in Windchill PDMLink

  • November 18, 2024
  • 1 reply
  • 1125 views

Version: Windchill 12.0

 

Use Case: I want to link latest (master) document to WTPart. I have to relate two types of documents to WTPart version specific and master document document. For this purpose I implemented WTPartDescribeLink and WTPartReferenceLink. The GET method was already available to retrieve the DescribedBy and ReferencedBy and I am looking to customize it for other methods like POST, PATCH and DELETE.


Description:

I have implemented the WTPartDescribeLink with the help of following ticket attached. I tested it after implementing it and it is working fine.  CS285572 - How to create WTPartDescribeLink / WTPartReferenceLink using Windchill REST Services in Windchill PDMLink

 

Now I am trying the same approach to implement WTPartReferenceLink by modifying PartReferenceLink.js and PartReferenceLink.json files. I just followed the same as for WTPartDescribeLink. the only change was reference to master document as instructed " 

attributes.add(new AttributeData("references", referencesOid.getRefObject().getMaster()));

" I have attached the modified files with this ticket. I deployed it and restarted the windchill server however it is not available in WRS.

 

I would be grateful if someone guide me with it or if someone has clue about it. To make clear, I have advance-beginner level knowledge and i am working on my thesis project.

Thank you in advance for your support.

 

Kind regards

 

Best answer by MT_11904685

Hi, I implemented these hooks, I have attached the files. You can follow the instructions from ticket #CS285572. 

1 reply

12-Amethyst
April 21, 2025

Were you ever able to get this working? I am running into the same issue. If you did I'd love if you could share the working files you have!

 

Not being a Java developer, I also don't know how I would be able to figure this out. Is there some IDE that can be used to see all methods available or similar? I'm just using Notepad++ at this point. No idea if anything I'm writing is even valid!

MT_1190468510-MarbleAuthorAnswer
10-Marble
May 19, 2025

Hi, I implemented these hooks, I have attached the files. You can follow the instructions from ticket #CS285572.