cancel
Showing results for 
Search instead for 
Did you mean: 

Getting values from Bapi and setting it to dropdown by key or index?

Former Member
0 Kudos

hi

i am getting values from BAPI which is in a table format,i want to set all the values of a field in that table to a dropdown (index or key).Please tell me hw can i do it?

Regards

Nidhideep

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nidhi,

for(int i = 0; i<wdContext.nodebapiNode().size(); i++){

wdContext.nodevaluenode().addElement(wdContext.nodevaluenode().createElement());

wdContext.nodevaluenode().currentbapinodeElement().setAtt(wdContext.nodebapinode().getbapinodeElementAt(i).getbapiatt());

}

bind your value node to dropdownbyindex

Regards,

Aparna.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

See this thread

Kind Regards

Mukesh

Former Member
0 Kudos

Hi,

Get the size of the node

int size = wdcontext.Node<output>.size();

for (int idx = 0; idx < size; idx++) {

IPrivate<ApplicationView>.I<outputNodeElement> val =(IPrivate<ApplicationView>.I<outputNodeelement) wdContext.nodeI<outputNode>().getElementAt(idx);

String sval = val.getKunnr();

val.setName1(Sval);

this name map to your Dropdownby index or key

}

This might helps you, Otherwise post your issues.

Thanks,

Lohi