cancel
Showing results for 
Search instead for 
Did you mean: 

OData TwoWay Binding - Edit multiple rows from the table

Former Member
0 Kudos

I have tied ODataModel with table using "TwoWay" binding.

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. Basically the same problem as described here

Is there something pending in the settings? And to update the multiple records in the table do I have to make use of some batch operations? Any help would be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

odataModel v2? or original one?

Former Member
0 Kudos

Hi,

I am using the "normal" ODataModel.

This is how I create the model:


// set explored app's demo model on this sample

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

  false);

former_member182372
Active Contributor
0 Kudos

the way v1 works with 2way is ugly - it send request for each property change, so switch to v2 or create an intermediate json model to hold chnages and copy data to json once done and submit to backend (as batch i would think)

Answers (0)