cancel
Showing results for 
Search instead for 
Did you mean: 

Easy: Get the text from one DropDownByKey

Former Member
0 Kudos

People.. please..

I have a dropdownbykey and I need to get its TEXT to put in another place, how can I do it ?

I need the text, not the value

If it was javascript it would be simple like this:

document.getElementById('comboid')[ document.getElementById('comboid').selectedIndex].text

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

IModifiableSimpleValueSet vs = wdContext.getNodeInfo().getAttribute(<attributename>).getSimpleType().getSVServices().getModifiableSimpleValueSet();

vs.getText(<key>);//to get the text for the key

vs.getKey(<value>)//to get the key for the value.

Regards,

Murtuza

Answers (1)

Answers (1)

former_member192434
Active Contributor
0 Kudos

Hi Michel,

Check out this link it has step by step explanations, how to get key text value with code.

http://help.sap.com/saphelp_nw70/helpdata/en/b3/f68e4ab25d7549888eb612bcb359f1/frameset.htm

Thanks

Anup