Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
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:
Solved! Go to Solution.
As it turns out, this solves the problem: Print enumeration display value
A few notes I picked up.
As it turns out, this solves the problem: Print enumeration display value
A few notes I picked up.
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
