cancel
Showing results for 
Search instead for 
Did you mean: 

Bind OData to editable table and save all changes at once

Former Member
0 Kudos

I have an OData model that I am binding to table where all of the cells (except the column headings) are editable - i.e. a user can click inside a cell and change the value. I need help with saving these changes back through the OData update service. A user would be able to edit as many cells as they would like and then click one 'Update' button and it would call the OData.update service and send the entire table of data back to be saved.

I'm very new to SAP UI5 and OData so the more detail that can be provided the better

I'm using JavaScript and a JSON model.

Accepted Solutions (1)

Accepted Solutions (1)

younghwan_kim
Active Participant
0 Kudos

You can use OdataModel(v2), and call submitChanges() to update all changes.

SAPUI5 SDK - Demo Kit

See Two-way Binding section.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

There is a nice link on this forum

Thanks and Regards

Former Member
0 Kudos

Thank you, but this is not quite what I'm looking for. This tells how to update a specific row, but I want to be able to send the entire table's data back to be updated at once.