10-20-2016 10:13 AM - edited 01-21-2024 9:48 PM
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);
Help me out to fix this. Thank you
Hi Sai,
These discussions might help you.
https://archive.sap.com/discussions/thread/3770417
https://archive.sap.com/discussions/thread/3683147
Regards,
Midhun VP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.