cancel
Showing results for 
Search instead for 
Did you mean: 

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

sainithesh21
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

midhun_vp
Active Contributor
0 Kudos
sainithesh21
Active Participant
0 Kudos

Thank you Midhun for the quick reply.

Let me go through the links and let you know.

sainithesh21
Active Participant
0 Kudos

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

Answers (0)