Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

How to retrieve Display Name of an Attribute's Value?

$
0
0

Hi All,

 

This is Windchill 10 question.

I have an attribute called "DesignControl" with logical name - "ext.abc.DesignControl". It has discrete set values in format like - Internal Name / Display Name as:

Design_A / Design A

Design_B / Design B

.....

 

For a document when I execute following code, I always get the value of the attribute to be - "Design_A" instead of "Design A" which is the display value.

 

WTDocument tmpDoc = //Retrieved from search results

LWCNormalizedObject obj = new LWCNormalizedObject(tmpDoc,null,Locale.US,null);

obj.load("number","name","IBA|ext.abc.DesignControl");

System.out.println("Design Control Value - " + obj.getAsString("IBA|ext.abc.DesignControl"));

 

What other API should I be using to get the correct display value ?

 

Regards,


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>