Skip to Content
author's profile photo Former Member
Former Member

Bind OData to editable table and save all changes at once

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 29, 2016 at 04:39 AM

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

    SAPUI5 SDK - Demo Kit

    See Two-way Binding section.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 28, 2016 at 07:58 AM
    -1

    Hi

    There is a nice link on this forum

    Building a CRUD Application with SAPUI5 Using Odata Model

    Thanks and Regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.