cancel
Showing results for 
Search instead for 
Did you mean: 

please help me....regarding dropdownbyindex using WDjava

Former Member
0 Kudos

hi everyone....

i am new to webdynpro java .please help me regarding the following.

i am getting data of 3 fields (name,id,contact) from bapi.now thew issue is i want the field(name)should be binded to the dropdown list.

i need the coding please provide in detail.

thanks in advance,

krishna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can create one DropDownBy Index UI element in the View.

Create one context node by name Values with attribute Name in it.

In Properties setting for DropDownBy Index UI set text property to name attribute in context node created.

Then in the View Controler use the below code to add elements to it. You can put this in loop of your bapi results and set the name with the bapi result instead of count.

     IValuesElement valueElement=wdContext.nodeValues().createAndAddValuesElement();

    valueElement.setName("Count");

Former Member
0 Kudos

thanks ravikumar....

Former Member
0 Kudos

Mark it is answered

Former Member
0 Kudos

hi ravi ,

could u tell me how to make changes to the file in ess/mss using nwds.

Answers (0)