Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
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.
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.
Hi,
I made the changes you mentioned above, but I’m encountering an error
It's difficult to help without any logs etc. I would say you forgot the following entry:
wt.configurablelink.ConfigurableReferenceLink=RELATED_DOCUMENTS
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.
sorry, but this is almost impossible to help you with a screenshot. Do you have setup this configurable link in the system? Perhaps you need attach all the files, or even better try it first with the example from PTC.
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.