Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

populating dropdown with values from RFC

how to populate values in a dropdown with values coming from RFC?...can anyone help me out with the code?

replied

Hi Parama,

Use dropdownbyIndex UI element and bind to the model attribute from RFC and write the following code in init

IPrivateEVSView.IAElement oE = wdContext.nodeA().createAElement();

IPrivateEVSView.IAElement oE1;

oE.setB("Select");

wdContext.nodeA().addElement(oE);

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

oE1 = wdContext.nodeA().createAElement();

oE1.setB(wdContext.nodeC().getCElementAt(i).getELEMENT());

wdContext.nodeA().addElement(oE1);

Regards

Raghu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question