Skip to Content

How to add new table item without saving it in SAPUI5 app & OData model

Dear developers,

I have general question regarding very common real scenario with SAPUI5 and SAP NW Gateway.

Let's have sales order object which should be created/maintained using SAPUI5 application.

I tried to solve this task and faced the problem with new item:

  • I have Odata model items bound to the table. It is possible to call createEntry method on Odata items model but till the change is not submitted it is not visible in table.
  • That is why I have to submit every new row to OData model (and SAP backend) which conflicts with single save/cancel approach for both header and items.


How to solve this issue, or do you have another experience?

Thanks Zdenek

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 13, 2015 at 03:22 PM

    do you use v2 odatamodel? server roundtrip shouldnot happen till you call submitUpdate

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 19, 2015 at 02:05 PM

    Hello Gurus,

    really no idea how to maintain ODataModel based table without immediate save to backend? How do you solve such situations? Would it be solution to read data from ODataModel, copy it to JSON model, work on it on the client and than copy it back to ODataModel for subsequent posting? It seems to me to be little bit complicated.

    Thanks,

    Zdenek

    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.