Skip to Content

Introduction

On April 10th, SAP announced a partnership with Sencha (www.sencha.com) that has several goals. The first goal was to deliver tools which make it easier for a Sencha Touch application to access SAP data using NetWeaver Gateway. The second goal is to provide tools that allow a Sencha Touch application to more easily interact with data (whether it be data from SAP or some other data source) and services via the SAP Mobile Platform.  The purpose of this post is to update you on the status of the partnerships and let you know what you can do with SAP and Sencha today.

OData connector

The SAP NetWeaver Gateway allows SAP developers to write code that exposes data from their implementation of SAP to mobile devices using an open protocol called OData. OData is essentially an Atom feed that exposes data in XML or JavaScript Object Notation (JSON) format. The protocol supports filtering a feed based on application or user-supplied criteria as well as the common CRUD (create, read, update, delete) operations expected from enterprise data sources.

SAP and Sencha have delivered on the first goal for the partnership – the creation of an OData connector for the Sencha Touch framework. The connector fits seamlessly into the Model-View-Controller (MVC) architecture provided by Sencha Touch and allows Sencha Touch applications to easily consume an OData feed – browsing a list of items, viewing details and even updating or deleting content from the feed (appropriate permissions required, of course).

The connector and sample application code leveraging the connector is available now at https://market.sencha.com/users/46/addons/49. The connector is available free of charge and will be supported by the Sencha Community.

We recently published a CodeTalk session with Sencha – you can find the video here: http://www.youtube.com/watch?v=cYtYxifrb20 (updated with new video link 08/13/2012). In this session, the folks from Sencha demonstrate how to use the OData connector within a Sencha Touch application.

Sencha Touch in the SUP HWC

If you’re already using (or thinking about using) the Sybase Unwired Platform (SUP), you can also use Sencha Touch for applications running within the SUP Hybrid Web Container (HWC). The HWC is a native application container for running HTML5 applications and as Sencha Touch is a leading HTML5 framework, it plugs in quite well. Essentially, a HWC application would leverage the authentication, data access and synchronization capabilities of SUP while relying upon Sencha Touch for its UI and MVC architecture.

A whitepaper containing information about how to use Sencha Touch in the HWC will be available online soon, I will update this post with the link as soon as it is available.

If you’re looking for some hands-on experience with this, be sure to attend the SAP TechEd conference (www.sapteched.com) in locations around the world this fall. Talk to the Experts and learn the latest and greatest things on enterprise mobility at TechEd. SAP offers more than 40 hours of training and lectures on mobility alone. Additionally you can test drive the latest developments from SAP and our Partners in the Mobility Zone and talk to the mobility experts. There are plans to offer a hand-on lab that will walk you through the process of updating a HWC application to use Sencha Touch.

Future Plans

To fulfill our long term goal of enabling Sencha Touch applications to connect to back-end data sources through SUP, we’re working to enhance the SUP server so it exposes its services (such as authentication, data access, synchronization, SSO and more) in a way that can be easily consumed by a Sencha Touch application. With this in place, a mobile application leverages the framework capabilities of Sencha plus the enterprise connectivity, security and performance of SUP. Best of both worlds!

Conclusion

So now you have an update on what we’re doing with Sencha. Once I’ve had some time to play with the connector, I’ll publish an article here highlighting how to use the connector to connect to SAP. When additional services are available through SUP, I’ll post additional articles here showing you how to leverage them for your applications.

To report this post you need to login first.

9 Comments

You must be Logged on to comment or reply to a post.

    1. Jorgen Andreasson

      Thanks John,

      Now if we just could get a step-by-step document on how to install Sencha plugin inside the SUP 2.1.3

      I have tried to followed several YouTube videos, but they are not how to install on a SUP. So we end up with various conflicts.

      Sencha says it could be the version of Eclipse we are using, but that is inside SUP, isn’t it?

      I would love to test this before our 30 day trial is over to see if it is going to do what we want.

      Cheers

      Jorgen

      Conflict;

      Cannot complete the install because of a conflicting dependency.

      Software being installed: Sencha Eclipse Plugin – 30 day trial

      1.0.0.201211051823 (com.sencha.vjet.extjs.trial.feature.feature.group

      1.0.0.201211051823)

      Software currently installed: Eclipse Platform 3.7.0.I20110613-1736

      (org.eclipse.platform.ide 3.7.0.I20110613-1736)

      Only one of the following can be installed at once:

         Core Resource Management 3.7.101.v20120125-1505

      (org.eclipse.core.resources 3.7.101.v20120125-1505)

         Core Resource Management 3.7.100.v20110510-0712

      (org.eclipse.core.resources 3.7.100.v20110510-0712)

      Cannot satisfy dependency:

         From: License 1.0.0.201211051823 (com.sencha.vjet.extjs.ftp

      1.0.0.201211051823)

         To: bundle org.eclipse.core.resources 3.7.101

      Cannot satisfy dependency:

         From: Sencha Eclipse Plugin – 30 day trial 1.0.0.201211051823

      (com.sencha.vjet.extjs.trial.feature.feature.group 1.0.0.201211051823)

         To: com.sencha.vjet.extjs.ftp [1.0.0.201211051823]

      Cannot satisfy dependency:

         From: Eclipse Platform

      3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f

      (org.eclipse.platform.feature.group

      3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f)

         To: org.eclipse.core.resources [3.7.100.v20110510-0712]

      Cannot satisfy dependency:

         From: Eclipse Platform 3.7.0.I20110613-1736 (org.eclipse.platform.ide

      3.7.0.I20110613-1736)

         To: org.eclipse.platform.feature.group

      [3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f]

      (0) 
      1. John Wargo Post author

        I spoke with the folks at Sencha and they said that this is a known issue and will be fixed in the next 4 to 6 weeks via an update to the Sencha Eclipse Plugin.

        (0) 
  1. Amit Nalawade

    i have downloaded sencha-touch-2.1.0-commercial. which sdk path do we have to point to through command prompt .i changed path to unzipped folder for ‘sencha-touch-2.1.0-commercial’ but it still says ‘current working directory is not valid sdk directory.please cd into proper sdk directory ‘ 🙁

    (0) 
    1. Luc Stakenborg

      Hi Amit,

      Are you trying to generate an app structure for a new ST app with the Sencha Command tool? If so, please make sure you are using the latest version (Cmd v3) in combination with ST 2.1.0. You can download it here: http://www.sencha.com/products/sencha-cmd/download

      Steps to create new app structure:

      • cd to your unzipped sencha-touch-2.1.0-commercial folder
      • use the following command: sencha generate app MyApp \path\to\MyApp

      Your app structure will be generated in \path\to\MyApp. It will also transfer over the framework parts you need for development and building.

      I hope this helps.

      (0) 

Leave a Reply