Skip to Content
0

How to delete particular data values which is created in Offline from local DB

Oct 20, 2016 at 09:13 AM

159

avatar image

Hi, I am trying to implement Offline functionality in UI5.

Once I successfully created the record in offline db.

How can I delete particular record from offline DB.

I tried with DELETE method, passing temporarily created Primary key value, even I tried with the created uri which is under metadata. But I could not succeed.

var that = this; var sURL = sServiceUrl + "CreatePhyInvSet('"+ LOCAL1+"')"

var authStr = auth;

var oHeader = {};

oHeader['Authorization'] = authStr;

var request = {

headers : oHeader,

requestUri : sURL,

method : "DELETE"

};

OData.request(request, readOfflineSuccessCallback, errorOfflineCallback);

upload.png

Help me out to fix this. Thank you

upload.png (130.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Midhun VP Nov 02, 2016 at 01:36 PM
0
Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thank you Midhun for the quick reply.

Let me go through the links and let you know.

0

I can able to update the value in offline db but could not perform DELETE operation.

One more issue I am facing is https://answers.sap.com/questions/36722/unable-to-get-latest-value-after-flush-in-kapsel-o.html

0