Skip to main content
4-Participant
June 22, 2023
Question

Add Name beside Change Object Number in Title

  • June 22, 2023
  • 3 replies
  • 1070 views

Currently the title display is "Change Object Type - OBJECTNUMBER, CAGE CODE"

The desired title display is "Change Object Type - OBJECTNUMBER, OBJECTNAME, CAGE CODE"

Windchill PDMLink 12.0.2.5

Similar to how WTDocuments and WTParts display the information in the title, only without the requirement for revision. 

I was unable to find any preferences that address this

 

 

 

 

3 replies

jbailey
18-Opal
June 22, 2023

Hah, I asked the same question slightly differently.... let me know if you figure out anything!

 

jbailey_0-1687449991257.png

 

jbailey
18-Opal
June 22, 2023
HelesicPetr
22-Sapphire II
22-Sapphire II
June 26, 2023

Hi @JS_10265661 

The display identity is managed by service delegate. Each Type has own delegate and is configured in a service.properties in a codeabse 

 

service definition for WTpart 

wt.services/svc/default/wt.identity.DisplayIdentification/null/wt.part.WTPart/3=wt.identity.DisplayIdentificationWTPartDelegate/duplicate

extends a wt.identity.DisplayIdentificationWTPartDelegate with own Java class and modify the getDisplayIdentity as you need. 

set the preference with own class replace wt.identity.DisplayIdentificationWTPartDelegate to your class "com.ext.MyDisplayWTPDelegate"

 

OOTB getDisplayIdentity for WTPart

 

 public DisplayIdentity getDisplayIdentity() {
 DisplayIdentity var1 = this.getFromCache();
 if (var1 != null) {
 return var1;
 } else {
 StandardViewVersionedDisplayIdentity var2 = new StandardViewVersionedDisplayIdentity(this.getResourceBundle(), this.getMessageKey(), this.getDisplayType(), this.getDisplayIdentifier(), this.getConceptIdentity(), this.getVersionIdentity(), this.getIterationIdentity(), this.getIterationIdentitySansView());
 return var2;
 }
 }

 

 

described example is for WTPart object. 

 

for WTDocument there is another preference definition and Class 

wt.services/svc/default/wt.identity.DisplayIdentification/null/wt.doc.WTDocument/3=wt.identity.DisplayIdentificationWTDocumentDelegate/duplicate

HelesicPetr_0-1687770024479.png

 

Hope this can help.

 

PetrH