Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Binding of data on UI with model

$
0
0

Hi,

 

I have created a table on my UI to hold the data from the backend.

I used a odata read service to get this data.

 

I have enabled the defaultBindingMode to TwoWay.

 

Code snippet :

          var oModel = new sap.ui.model.odata.ODataModel(

//                                     

                    "proxy/http/spwdfvm1820.wdf.sap.corp:1080/sap/opu/odata/sap/ZPAL_SERVICE/",

                                                            false );

 

          oModel.setDefaultBindingMode("TwoWay");

          oTable.setModel(oModel);

          oTable.bindRows("/PF_ROOTS");

 

The issue now : 

Now, I am trying to update data on my UI(it is an editable table) and send the request to the backend for an update.

 

I am facing issues with the data binding with the UI and Model.

I have 4 rows in my table, and I am trying to update all 4 rows. The first row that gets the update retains the change, while the others are unable to.

 

Could you kindly let me know of how I could have the changed data persist on my UI which inturn will ensure it on the model, when the call goes to the backend.

 

Let me know if I have made myself clear.

 

Thanks and regards,
Pallavika.

 

 

 

 

 


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>