Skip to main content
1-Visitor
January 30, 2015
Solved

How to get display name of the attribute?

  • January 30, 2015
  • 1 reply
  • 2079 views

Hi.

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

Thanks.

Best answer by VasiliyRepecki

Resolved by next code:

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

obj.load(attributeInnerName);

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

1 reply

VasiliyRepecki1-VisitorAuthorAnswer
1-Visitor
January 30, 2015

Resolved by next code:

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

obj.load(attributeInnerName);

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