Skip to main content
17-Peridot
November 14, 2025
Solved

Cascading attribute displays internal name of global enumeration from PersistableAdapter

  • November 14, 2025
  • 1 reply
  • 292 views

Version: Windchill 13.0

 

Use Case: Using PersistableAdapter to get IBA values of a cascading attribute, the obj.get("attribute_internal_name") for the cascading attributes specifically returns the internal names of the underlying global enumeration item instead of the display name.


Description:

I have a WTPart subtype that has several cascading attributes. 

 

 

Is this expected behavior? Is there a way to get the display value of the enumerated value that is used to set up the cascading attribute?

PersistableAdapter, when used to get the original value ("Reason for Classification" in my case) returns the enumerated value list internal value instead of the display value. 

 

Setup:

Dobi_0-1763158264859.png

 

Best answer by Dobi

As it turns out, this solves the problem: Print enumeration display value 

A few notes I picked up. 

  • We're on Windchill 13. EnumerationEntryIdentifier, LWCEnumerationEntryValuesFactory, and LocalizedValues don't exist in the JavaDoc (depricated, or otherwise). Without this being written down in full detail in that post I would have struggled to find my way through it. 
  • AttributeTypeSummary REQUIRES that the Locale is added in the persistabelAdapter. Otherwise it doesn't work. Would be nice to have that noted in the AttributeTypeSummary class somewhere...
  • This continues to work with: com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(prt,null,locale, new com.ptc.core.meta.common.DisplayOperationIdentifier()); The last bit doesn't have to be null

1 reply

Dobi17-PeridotAuthorAnswer
17-Peridot
November 17, 2025

As it turns out, this solves the problem: Print enumeration display value 

A few notes I picked up. 

  • We're on Windchill 13. EnumerationEntryIdentifier, LWCEnumerationEntryValuesFactory, and LocalizedValues don't exist in the JavaDoc (depricated, or otherwise). Without this being written down in full detail in that post I would have struggled to find my way through it. 
  • AttributeTypeSummary REQUIRES that the Locale is added in the persistabelAdapter. Otherwise it doesn't work. Would be nice to have that noted in the AttributeTypeSummary class somewhere...
  • This continues to work with: com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(prt,null,locale, new com.ptc.core.meta.common.DisplayOperationIdentifier()); The last bit doesn't have to be null
HelesicPetr
22-Sapphire II
22-Sapphire II
November 18, 2025

Hi @Dobi 

If something is not in the JavaDoc that does not mean you can not use it.

It is not just officially supported for customization but if it works, then it works. there is just a risk that PTC would change the API in the future. But it is your responsible to keep in mind it.  

 

Some old API functions are not in the Windchill 13+ because PTC removed most of depreciated apis that had been selected as depreciated more then 10 years ago 😄 

 

PetrH

PetrH