More Related Content
Similar to From SAP to app using rhomobile (20)
From SAP to app using rhomobile
- 1. From SAP to app using Rhomobile
Mark Teichmann, Info AG
© INFO AG | 13 May 2012 | page 1
- 2. Mobile Application Development Platforms
What is a MADP?
=> Suite of products and services that enable development of
mobile applications
Typical Features
• Cross-platform support
• Middleware for Data Sync, Security, App Provisioning
• Graphical Editor / Code generation
© INFO AG | 13 May 2012 | page 2
- 3. Mobile Application Development Platforms
Overview of well known Vendors
• Antenna Software
• Appcelerator
• IBM Worklight
• Kony Solutions
Rhomobile
• Rhomobile
• Sybase Unwired Platform
• Syclo (will be merged into Sybase Unwired Platform)
• Verivo
• …
© INFO AG | 13 May 2012 | page 3
- 6. Live Demo
© INFO AG | 13 May 2012 | page 6
- 9. Components of Rhomobile
• Design mobile apps using Ruby and Eclipse
• Synchronize data with backend systems
• Build apps for all platforms in the cloud
© INFO AG | 13 May 2012 | page 9
- 10. Rhodes
• Open Source Framework for building mobile applications
• Ruby MVC
• Rhom Database Object Mapper
• UI is HTML5/CSS/JS
• Rendered in native browser app
• Available for Android, iOS, Blackberry, Windows Phone
© INFO AG | 13 May 2012 | page 10
- 12. Ruby MVC
Model
Controller View
© INFO AG | 13 May 2012 | page 12
- 13. Rhom
Mini Database Object Mapper
• Easy data handling
• No database schema
• No data migrations needed
• Data model extendable by code
© INFO AG | 13 May 2012 | page 13
- 14. Rhom Example Code
Added Property get_banfpos_list to the model
Built-in Sync functionality
Model is easily
expandable
© INFO AG | 13 May 2012 | page 14
- 16. Corresponding
View
Source code
<li><div data-role="collapsible”>
<h3>Bestellpositionen</h3>
<ul data-role="listview" data-inset="true" >
<% @workflow.get_banfpos_list.each do |pos| %>
<li data-role="list-divider" >Position <%= pos['bnfpo'].to_i %>
<span class="ui-li-count"><%= pos['menge'] %></span>
</li>
<li>
<p><strong>Material: <%= pos['matnr'] %></strong></p>
…
…
© INFO AG | 13 May 2012 | page 16
- 23. REST Service in SAP
Transaction SICF
rest_result = RestClient.get("#{@base}/sap/zrest/banfdemo/workflows/#{current_user.login.upcase}").body
© INFO AG | 13 May 2012 | page 23
- 26. RhoHub
Build native apps for all platforms
• Git Repository for your source code
• RhoHub Editor for working in the Cloud (optional)
• Build app for different Mobile Platforms
© INFO AG | 13 May 2012 | page 26
- 31. Lessons learned
• Learning Ruby is straight forward
• Implementing SAP backend needs manual work
• Documentation of Rhomobile could be better and more up to date
• Good support via Google Group and @adamblum (CEO)
• jQuery Mobile slows apps down -> jqMobi is possible but much
manual work needed
© INFO AG | 13 May 2012 | page 31
- 32. Thanks for your attention!
MARK TEICHMANN
mark.teichmann@info-ag.de
@thulium3
© INFO AG | 13 May 2012 | page 32