How to switch between online and offline modes in the Fiori hybrid app?

I am building a hybrid (and network) application using the SAP Fiori Kapsel, WebIDE, and Mobile Service for Development and Operations plugins from the SAP cloud.

The web application uses some of the functions that are not supported by the offlline plug-in (for example, importing functions and deep inserts). Both of these features are very important, and I must have them - or something similar - also available for the hybrid application.

In my opinion, a hybrid application runs in "offline" by default. I would like to use this offline mode only as a rebound and call the "true" OData service as often as possible.

Is it possible?

+4
source share
1 answer

There are various ways to create relationships with the Offline OData plug-in (importing functions is not yet supported). To explain the deep insets, we need more information about exactly how you are trying to do this.

You can use offline / online mode at the same time. This blog post may be helpful. It includes an example of battery life - one of which shows an example of mixed use (offline / online).

We recommend that you stay offline most of the time, and when you need to make an online call, first perform a flash / upload, resolve any data conflicts, if any, then make an online call, then make an update / download. This will ensure data consistency.

0

Source: https://habr.com/ru/post/1693056/


All Articles