Quantcast
Viewing all articles
Browse latest Browse all 4841

Re: set the value in UI5 DropDownBox

Hi Partheeban,

Sorry, I'm not sure why this is not working for you. But probably you can try something as shown below for binding model to the table.

 

var sUrl = <URL FOR DATA>

 

 

var oModel = new sap.ui.model.json.JSONModel(); 

                       $.ajax({ 

               type: 'GET', 

               url: sUrl, 

             success: function (data) {

                 var rows = data.Rowsets.Rowset[0].Row; //returns all the rows

                 oModel.setData({modelData: rows});

                 oTable.setModel(oModel);

                 oTable.bindRows("/modelData");

               } 

           }); 

 

 

Best Regards,

Ria


Viewing all articles
Browse latest Browse all 4841

Trending Articles