cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get display name of the attribute?

SOLVED
Highlighted

How to get display name of the attribute?

Hi.

How can i get display name of the attribute by java code?

Thanks.

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to get display name of the attribute?

Resolved by next code:

LWCNormalizedObject obj = new LWCNormalizedObject(persistable, null, locale, null);

obj.load(attributeInnerName);

String displayName = obj.getAttributeDescriptor(attributeInnerName).getLabel();

1 REPLY 1

Re: How to get display name of the attribute?

Resolved by next code:

LWCNormalizedObject obj = new LWCNormalizedObject(persistable, null, locale, null);

obj.load(attributeInnerName);

String displayName = obj.getAttributeDescriptor(attributeInnerName).getLabel();

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________ Check out the Windchill Tips Board! We're talking about Whirlpool's use of digital twin, augmented reality, and data-driven design!

The NAVIGATE WORKING GROUP is here! Come innovate with PTC!

Sign up for a Working Group