Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Does store.flush update the local created entity

Hi Experts,

Can store.flush updates the local created entity with the key? I don't see that store.refresh refreshes the with new entries (if exists) in the backend, but I want my locally created entry need to be updated as my the local record will have temporary key assigned(within the program) where as when it sent to backend new number(key) will be generated.

Is there a way to update the local created record? or delete from the local record if flush was successful.

Regards,

Murthy

Former Member
Former Member replied

Hello Murthy,

I found the solution.. in my case, backend´s guys had not implemented "DELETE"  http method and the plugin tries to look (unsuccessfully) to get this method (as a standard way in REST apps) and it did not find it..  From backend implemented a empty method and it was enough.

Of course, it is necessary to follow oData protocol line by line and it will works...

Here you can see another example of this problem, more or less similar...

Kapsel Offline OData - Flush works, but doesn't clear sap.islocal() flag

In this post I had written comments with the user Dan Antonio.

I expect you find the solution..

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question