Skip to main content
5-Regular Member
May 8, 2025
Question

How to add custom configurable link in Comparison report.

  • May 8, 2025
  • 2 replies
  • 842 views

Version: Windchill 12.1

 

Use Case: Add configurable link in comparison report


Description:

I have created a new configurable link in Windchill for my object types. I want to add this Configurable link to Comparison report from Compare action on the object.

What is best way to do this.

 

2 replies

17-Peridot
May 8, 2025

I have done that with the information of the case: https://www.ptc.com/en/support/article/CS276238?as=1

In my case WTParts have some WTDocuments which are added by Configurable links after a release. So I modified just the WTPart Compare.

 

1. Edit file: 

$(wt.home)/codebase/netmarkets/jsp/ocmp/WTPart/comparisonReport4WTPartStep.jsp

and added

linkToDisplayMsgMap.put(wt.configurablelink.ConfigurableReferenceLink.class.getName(),
ocmpClientResource.RELATED_DOCUMENTS);

2. Edit file:

$(wt.home)/codebase/netmarkets/jsp/ocmp/common/tailoringOptions.properties

and add it to the WTPart

wt.part.WTPart/RELATED_DOCUMENTS=wt.part.WTPartReferenceLink,wt.part.WTPartDescribeLink,wt.configurablelink.ConfigurableReferenceLink

 and add

wt.configurablelink.ConfigurableReferenceLink=RELATED_DOCUMENTS

 3. Edit file:

$(wt.home)/codebase/com/ptc/core/ocmp/config/ObjComparisonConfig.xml

 add

<type id="wt.configurablelink.ConfigurableReferenceLink" comparator="default" assembly="wnc">
<attrs comparator="default">
<ids/>
</attrs>
<role comparator="default">references</role>
<roleTargetsToCompare/>
</type>

Restart Windchill and the WTPart Compare shows now the connected or disconnected WTDocuments which have been connected by a configurable link.

4-Participant
May 9, 2025

Hi,
I made the changes you mentioned above, but I’m encountering an error

SV_11088692_2-1746783791212.png

 

4-Participant
May 10, 2025

I have added the entry as well. I am attaching a screenshot of the logs for your reference. Kindly assist me with this issue at your earliest convenience.

SV_11088692_0-1746884154138.png

 

Community Moderator
May 16, 2025

Hello @HO_10736653

 

It looks like you have some responses from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.