cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding drop-down with RFC calling

Former Member
0 Kudos

Hi Everyone,

I am facing a issue with the drop-down in NWDS 7.3. The data to the drop-down is taken from RFC. But in the output, in the drop-down I was getting 2 blank gaps , eventhough no code in inserted.

Thanks & Regards

Sahithi




 
 
 
 
 
 
 
 
 
 
 


Accepted Solutions (0)

Answers (2)

Answers (2)

vijay_kumar49
Active Contributor
0 Kudos

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);

}

Please go through this link:  http://help.sap.com/saphelp_nw04/helpdata/en/b3/f68e4ab25d7549888eb612bcb359f1/content.htm

Hope this helps!!

Regards

Vijay Kalluri

Former Member
0 Kudos

Thank you Vijay

Sharathmg
Active Contributor
0 Kudos

Check the elements which are loaded on the dropdown.

Possibilities: RFC may have returned empty rows.

Try to set a debugger(external) in RFC and check if the data is available on RFC execution. You can also try to print the size of the model node(s) in wd java methods.

Regards,

Sharath