cancel
Showing results for 
Search instead for 
Did you mean: 

delta fetch in Hybrid offline mobile application using full stack webide

former_member194533
Participant
0 Kudos

Hi Experts ,

I have developed a Hybrid Offline Mobile App using full stack WEBIDE by following the below blog .

Creating an Offline CRUD hybrid mobile app in SAP Web IDE Full-Stack with Hybrid Application Toolkit

I am able to get the offline mobile app but I want to implement the delta fetch to get the latest data as per the latest time stamp from back end . My back end team has implemented this delta fetch in ODATA layer but I need to trigger this from my front end mobile application .

Can any body help me with the exact code that I need to add to enable delta fetch from front end application .


Thanks

Rizwan

Accepted Solutions (0)

Answers (2)

Answers (2)

kunju1991
Participant
0 Kudos

Hi Rizwan,

I am facing the same issue, did you get the solution for hte same.

Thanks,

Kunj

grabz
Employee
Employee
0 Kudos

UPDATED ANSWER:

  1. On the client side you don’t have to do anything. When a delta link is available the SDK will use it automatically.

Delta token is maintained per entity set/table. „Entity” in OData stands for one record. „Entity set” stands for one table. Please don’t use these terms as interchangeables.

As some backends doesn't support delta tracking SCPms can do it instead, if needed:

SCPms > your app > Offline feature > Defining queries

  • If you want delta tracking by SCPms for the particular defining request (which is an entity set + some optional query parameters) then set the Delta tracking to Always.
  • If the delta tracking is implemented on the backend for the particular defining request, then set the Delta tracking to Never. (This is the recommended way of delta tracking.)
  • If you don’t want to track the deltas, but always retrieve everything, not caring about the changes/no changes, then set the Delta tracking to Never and don't implement the delta handling on the backend for the given GET_ ENTITYSET method.

Also, check this blog: https://blogs.sap.com/2015/04/16/4-how-to-use-delta-query-and-server-side-paging-with-soft-state/