cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Mobile Development Kit(MDK) Offline with Offline OData Service

former_member709374
Participant
2,856

Hey,

If I'm developing a mobile application using the Mobile Development Kit (MDK) that needs to be offline, how do I do that?

Using Hybrid Application Toolkit (HAT) the whole thing worked with the offline OData service.

Is it the same with the MDK?

Suppose I have developed an IOS application with the MDK. The data is then stored locally on the IOS device. The Offline OData then takes over the transfer of the data?

I didn't quite understand what exactly the difference is in offline capability when an application is developed with MDK or HAT. MDK is metadata based and HAT is built on Cordova. That's clear. But how does the offline capability of the two work? Does MDK Support Offline OData Plugin?

Is there any difference at all? Can someone please explain me exactly the mechanism of offline capability.

Many greetings

Taha

Accepted Solutions (0)

Answers (1)

Answers (1)

Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Likes
  • If I'm developing a mobile application using the Mobile Development Kit (MDK) that needs to be offline, how do I do that? >>If you are creating a MDK project using a template, you need to enable offline store option for a given destination, select what OData collection(s) you want to have in the offline store, MDK editor (BAS/WebIDE) will then generate a full metadata project that also includes .service file (where you will find enable offline store option) and also an IntializeOffline action that will contain the list of defining queries for the offline store.
  • Using Hybrid Application Toolkit (HAT) the whole thing worked with the offline OData service. Is it the same with the MDK? >> I think, the underlying technology is same for both.
  • Suppose I have developed an IOS application with the MDK. The data is then stored locally on the IOS device. The Offline OData then takes over the transfer of the data? >>Didn't get what you are asking.

Once Offline store has been initialized, you can perform CRUD operations against the offline store.

  • I didn't quite understand what exactly the difference is in offline capability when an application is developed with MDK or HAT. MDK is metadata based and HAT is built on Cordova. That's clear. But how does the offline capability of the two work? Does MDK Support Offline OData Plugin?>>No, MDK is not based on Cordova/kapsel plugin. It uses Native SDKs framework. If you start developing a new mobile app, please have a look at these development options.
  • Can someone please explain me exactly the mechanism of offline capability. >>I suggest you to go through Offline documentation to in depth understanding.

Additionally, i recommend you to try out MDK tutorials to understand MDK development and how offline part works there.

P.S. Sorry, i had to delete my previous answer, there seems the platform couldn't format the response correctly. Trying it again.

Riyaz_abdul
Explorer
0 Likes

Hello @Jitendra_Kansal

i have  developed an application which has pages that are designed with extensions. in offline mode, Form Cell Registered Extension Control are not displaying .   it giving an alert message (Failed to fetch "java.net.UnknownHostException" unable to resolve host ."no address associated with hostname).

thank you.