Skip to main content
Jun 22, 2023 2:59 PM UTC
Question

Add Name beside Change Object Number in Title

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

Jun 22, 2023 4:06 PM UTC

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

 

jbailey_0-1687449991257.png

 

Jun 22, 2023 4:09 PM UTC
Jun 26, 2023 9:00 AM UTC

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