Skip to Content
0

SAP UI5 + oData Offline + Deep Insert

Mar 20, 2017 at 12:36 PM

98

avatar image

Experts,

We are creating an Offline application in SAP UI5 with Kapsel SDK 14 and we are trying to work around Deep inserts in a following way.

Scenario

1- When user saves the data (1...n), it is stored in an Offline Encrypted Storage. User can save multiple objects (1...n) in Offline Encrypted Storage.

2- Once user is Online, he synchronise and multiple objects (1...n) are saved for deep insertion using oData.create method.

I am calling oData.sap.removeHttpClient() before calling the Online deep insert and after sync is completed, I am calling oData.sap.applyHttpClient().

I am also calling refreshSecurityToken() before Sync process.

I am not using $batch calls for oData call.


Problem

The first call hits the oData service in our backend in Online and rest of the calls just go the Offline Store and not updating the actual data in backend. What is the reason behind this or what am i missing here?

10 |10000 characters needed characters left characters exceeded

Hello Umer,

Were you able to find solution for your issue?

Regards, JK (Moderator)

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers