cancel
Showing results for 
Search instead for 
Did you mean: 

OData based hybrid app development

Former Member
0 Kudos

Hi all,

I got a requirement to develop an OData based hybrid application. Currently there not much resources available which could guide me through the app development in a hybrid environment.

Kindly provide some information and guidelines to develop OData based hybrid application.

Regards,

Serveshwar Mishra

Accepted Solutions (1)

Accepted Solutions (1)

Virinchy
Active Contributor
0 Kudos

Hi serveshwar Mishra,

Which UI framework are you working with ? Is it on UI5 ?

Also are you integrating SMP and Kapsel plugins in  here ?

Former Member
0 Kudos

Hi Virinchy,

We haven't yet decided which UI framework to use. Actually this is my first hybrid mobile project.

Regards,

Serveshwar Mishra

Virinchy
Active Contributor
0 Kudos

Ok, I assume you are consuming Odata services directly to Ui5 (SMP is optional depending on requirement )

These might help you for consumption of OData without SMP using UI5

1)

2)

3)

Consuming Odata via Sencha

Integration of SMP with Sencha  (Only UI framework changes ,The process of using other frameworks like  UI5/JQM with SMP remains the same )

I would recommend two different web Ides (Appbuilder, River RDE ) available from SAP to quicken the development on UI5 framework. 

A comparison of these and more info are found here .

Please note there is a dedicated Community for UI5 development

Regards

Virinchy

Former Member
0 Kudos

Thanks very much Virinchy.

Can you please tell me which UI framework will be good Sencha-touch or UI5.

Also if Appbuilder will be useful if I choose to work with Sencha-touch framework.

Regards,

Serveshwar Mishra

Virinchy
Active Contributor
0 Kudos

Sencha and UI5 both are good. UI5 is of SAP now as an open source. There is a dedicated library sap.m in UI5 . Also if the app is developed in Ui5 can be later be deployed in fiori launchpad along with other fiori Apps.

though ui5 is suggested , EOD its all about the requirement .

Appbuilder and river rde both are based on UI5 library only and cannot be used with other frameworks

Former Member
0 Kudos

Hi Virinchy,

Ok, I've just discussed and according to the requirement we'll be using SMP. So, are there any additional steps required to use SMP with OData hybrid apps.

Secondly, is there offline mode possible in hybrid OData apps.

Regards,

Serveshwar Mishra

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please provide complete details. Which SMP version you are using? Do you want to use REST API app development approach or kapsel based app development (one of the feature in latest SMP 3.0)

Rgrds,

JK

Note: Please don't close a thread if it has not answered and once you close it, for further query raise a new thread.

Former Member
0 Kudos

Hi Jitendra,

We are presently using SMP 3.0.

Kindly guide me that which app development approach would be better.

Regards,

Serveshwar Mishra

midhun_vp
Active Contributor
0 Kudos

SMP Hybrid apps are based on Kapsel plugins, you can find complete information here : . Offline is not supported in hybrid apps for now.

Regards,

Midhun VP

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

In addition to Midhun's comment, hyrbid app can be developed using REST API app development approach also, For offline capabilities, you have to code manually.

For additional info, follow these links

http://help.sap.com/saphelp_smp304sdk/helpdata/en/7c/0a4f017006101484238a3b00c4d5d0/frameset.htm

Former Member
0 Kudos

Hi Midhun,

According to the requirement I need to go with the hybrid app development using OData.

But according to your reply, "Offline is not supported in hybrid apps for now."

So how can I achieve the Offline functionality in my hybrid app?

Kindly reply asap

Regards,

Serveshwar Mishra

midhun_vp
Active Contributor
0 Kudos

Hi Serveshar,

You are free to use any 3rd party cordova plugin. Ex. Apache Cordova Storage API Documentation

Even when you need any other funtionalities to the app like scanner, camera etc you can use the 3rd party plugins.

Regards,

Midhun VP

Former Member
0 Kudos

Hi Midhun,

Sorry for the mis-communication.

We will be using SMP 2.3 and later on will be migrating to SMP 3.0.

Kindly guide me for the hybrid app development Odata

Regards,

Serveshwar Mishra

midhun_vp
Active Contributor
0 Kudos

Hi Serveshwar,

If you are on SMP 2.3, for hybrid apps you have to go with HWC (hybrid web container) approach. You can find many resources in internet.

Also have a look at SMP 3 migration effort needed for each approach: . Choose the approach wisely since there is architectural difference with SMP 3 and older versions. You can find SMP 3 documentation here: SAP Mobile Platform – SAP Help Portal Page

Regards,

Midhun VP

Former Member
0 Kudos

Thanks for the reply Midhun.


As read from the documents and according to my understanding, we are actually using REST to interact with the OData service via Netweaver gateway. So what is the role of SMP in this process.


Regards,

Serveshwar Mishra

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

in case of REST API app development, SMP 2.3 acts as a proxy. Just have a look at

Former Member
0 Kudos

Thanks for the quick response Jitendra.

So finally I should go with SAPUI5 + OData + SMP 2.3.

One more query... according to Sybase docs, it suggests to use datajs.js for OData interaction from the app. But it seems SAPUI5 itself provides sap.ui.model.odata.ODataModel class to interact with the OData services.

So how will I register my device on the SMP 2.3 server using SAPUI 5.

Regards,

Serveshwar Mishra

midhun_vp
Active Contributor
0 Kudos

To add Jitendra's point,

You can even develop apps that consumes Odata directly in devices. The advantage of using SMP is that it takes care of the security, user on boarding, authentication and push notification. You build app using third party tools, without using SMP SDK or native client libraries SMP provides management and monitoring of apps. 

Regards,

Midhun VP

Former Member
0 Kudos

Please reply how to register the device using SAPUI 5.

midhun_vp
Active Contributor
0 Kudos

Hi Serveshwar,

I haven't tried myself with REST API with web/hybrid apps. You have to call the REST API in your app to register. I didn't find an example with UI5. You can find the documentation here: SyBooks Online

Regards,

Midhun VP

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Regarding device registration, please check this blog. You have to add a method in controller.js .

I am not sure about data.js file to be used in UI5 based app. Maybe can share some points.

Rgrds,

JK

Answers (0)