cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to get the value from the dropdown instead of key

Former Member
0 Kudos

Hi,

Is it possible to get the value instead of key from the DropDownByKey UI Element.

Any help is appreciated.

Rg/Venkat

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Venkatesan,

Yes, it is possible. Assuming you have to get value of attribute MyAttr, node MyNode:


final Object key = wdContext.currentMyNodeElement().getMyAttr();
final ISimpleValueSet svs = wdContext
  .nodeMyNode().getNodeInfo().getAttribute("MyAttr")
    .getSimpleType().getSVServices().getValues();

final String displayValue = (String)svs.get(key);

VS

Answers (0)