wireless wednesdays: part 3

37
Getting Started with Mobile Development Part 3: April 2, 2014

Upload: teamstudio

Post on 18-Dec-2014

238 views

Category:

Technology


1 download

DESCRIPTION

Your business users want to access their Notes & Domino applications on their mobile devices. Join our third webinar in a free four-part series and have two experienced experts, Matt White and Rich Sharpe, guide you through what you need to know. The first webinar on Jan. 8 took a look at the tools and frameworks that can help you. The second webinar on Mar. 5 took a deeper dive into one of the main alternatives: IBM Dojo Mobile Controls. The second half of the series will tackle the other main alternatives: Unplugged Mobile Controls and JQuery Mobile. Matt and Rich will pick out the good, the bad, and the ugly stories from their Domino development experiences. In Part 3, learn: -Unplugged Mobile Controls -Performance considerations -Handling offline requirements -Pros and cons vs. alternatives

TRANSCRIPT

Page 1: Wireless Wednesdays: Part 3

 

   

Getting Started with Mobile Development Part  3:  April  2,  2014  

Page 2: Wireless Wednesdays: Part 3

Introducing  •  Your  mobile  Domino  server:  take  your  Notes  apps  with  

•  Tools  for  collaboraFve  compuFng  in  mid-­‐size  and  large  enterprises,  primarily  for  IBM  Notes  

•  Easy-­‐to-­‐use  tools  for  developers  and  administrators  

•  Unplugged:  easy  mobilizaFon  of  Notes  apps  to  Blackberry,  Android  and  iOS  

•  2300+  acFve  customers,  47  countries  

•  Offices  in  US,  UK  and  Japan  

Page 3: Wireless Wednesdays: Part 3

•  Your  mobile  Domino  server:  take  your  Notes  apps  with  you!  

•  End-­‐users  access  Notes  applicaFons  from  mobile  devices  whether  online  or  offline  

•  Leverages  exisFng  skills  and  technology  –  XPages  –  a  replicaFon  model  you  already  know  

•  Unplugged  3.0  recently  released  

Teamstudio  Unplugged  

Page 4: Wireless Wednesdays: Part 3

•                 ConFnuity  –  Mobile  offline  access  to  BCM    programs  

•                 OneView  Approvals  –  Expense  approvals;    anywhere,  anyFme  

•                 CustomerView  –  lightweight  CRM    framework  for  field  sales  and  field  service    teams  

•  Contacts  –  customer  informaFon  database  •  AcFviFes  –  customer  acFvity  log  •  Media  –  mobile  offline  file  storage  and  access  

Unplugged  Template  Apps  

Page 5: Wireless Wednesdays: Part 3

•  Unplugged  Mobile  Controls  User  Group  –  April  meeFng  

tomorrow  

•  Next  webinar  with  TLCC:  Ask  the  XPages  Experts  –  April  10  

•  Next  Wireless  Wednesdays  webinar:  Part  4  –  May  7  

•  Promo<on:  Demo  the  Unplugged  Admin  Console  and  be  entered  

to  win  a  Galaxy  Tab  3  

 

Page 6: Wireless Wednesdays: Part 3

Unplugged Controls

Page 7: Wireless Wednesdays: Part 3

Agenda

Introduction

Installation

Development

Tips and Tricks

1

2

3

2

4

Page 8: Wireless Wednesdays: Part 3

Wireless Wednesdays

 A series of webinars where we discuss XPages mobile development for the enterprise

  In January we looked at an introduction to mobile   In February, at Connect, we talked about creating the

Unplugged Controls project   In March we looked at Dojo Mobile  This month we’re talking Unplugged Controls   Still to come –  jQuery Mobile

3

Page 9: Wireless Wednesdays: Part 3

Introduction

 Unplugged Mobile Controls are created by Teamstudio as a set of open source development tools

 To aid development of applications to run on Teamstudio Unplugged

 But the controls are free, open source and can run in a mobile browser as well –  You can use the controls even if you don’t use Unplugged

4

Page 10: Wireless Wednesdays: Part 3

Introduction

 The idea is to make creating a really good mobile application in XPages a simple process: –  Add custom controls and resources to your database –  Created XPages using the controls –  If it’s a simple app you don’t even need to write any code

 There are 18 controls –  Everything from headers / footers, views, forms dialogs –  We’re always adding more

5

Page 11: Wireless Wednesdays: Part 3

Introduction

 A few key deliverables with the Controls: –  Have to work well on both phones and tablets –  Have to perform well • We aim for a sub second response time inside Unplugged

–  Have to work inside Unplugged and mobile web browsers • Unplugged is always the primary target, but if a feature

doesn’t work in a browser it is a bug –  Have to be easily re-styled • More on this later

6

Page 12: Wireless Wednesdays: Part 3

Installation

 The controls are released on OpenNTF: –  http://unplugged.openntf.org

 Download the latest release –  One template with the controls, and all resources –  Two sample apps that you can use as a guide

 Documentation is available as well http://unplugged.github.io/unplugged-controls/index.html

7

Page 13: Wireless Wednesdays: Part 3

Development

 Copy across required XPages, Custom Controls, resources from template:

8

Page 14: Wireless Wednesdays: Part 3

Development

  Set up your forms and views, we’re using the same app as last month –  Don’t worry you’ll be able to download all this at the end

of the session!

9

Page 15: Wireless Wednesdays: Part 3

Create Layout

 We need a custom control to handle layout, much like any other XPages application

 Add 2 stylesheets to the resources

10

Page 16: Wireless Wednesdays: Part 3

Create Layout

 Next we want to drag in a UnpHeader control

11

Page 17: Wireless Wednesdays: Part 3

Create Layout

 Drag in a UnpFooter below the UnpHeader

12

Page 18: Wireless Wednesdays: Part 3

Create Layout

 Between the Header and Footer, drag in a UnpNavigatorComputed

 We need to create a JSON object which describes the menu items –  Lots of options, but in this demo we just want two menu

items

13

Page 19: Wireless Wednesdays: Part 3

Create Layout

 Finally for the layout control, we want to add an editable area inside a div with an id of content –  (note the id relates to the menu items we set up earlier)

–  Save the custom control

14

Page 20: Wireless Wednesdays: Part 3

Create Home Page

 Add a new XPage called UnpMain  Drag in our layout custom control

 Drag a panel into the editable area in the layout

15

Page 21: Wireless Wednesdays: Part 3

Create Home Page

 Drag a UnpScrollableArea into the Panel  And then add a UnpFlatView inside the UnpScrollableArea

16

Page 22: Wireless Wednesdays: Part 3

Test Home Page

  Save and preview the XPage

17

Page 23: Wireless Wednesdays: Part 3

Create Second View

 Create an XPage called ByLastName

18

Page 24: Wireless Wednesdays: Part 3

Create Form Viewer

  Create a new XPage called EmployeeRead   Add a document data binding   As before, add layout structure, but this time add a UnpFormViewer

19

Page 25: Wireless Wednesdays: Part 3

Create Form Viewer

 Add all of the other fields to display in the same way

20

Page 26: Wireless Wednesdays: Part 3

Create Form Editor

 Add a new XPage called Employee  Add the usual structure, with a UnpFormEditor control  Add the fields to the page: –  We use CSS classes to control functionality •  required •  deletable •  autocomplete

21

Page 27: Wireless Wednesdays: Part 3

Create Form Editor

22

Page 28: Wireless Wednesdays: Part 3

Create Form Editor

23

 For a date picker use this format

 Remember to set the type to get the correct keyboard

 We offer “native” style switch controls

Page 29: Wireless Wednesdays: Part 3

Finished App

  So we have a (very simple) application that supports viewing and editing data

 There’s a whole load more the controls can do, check out the Sampler application for examples

 What we’ve done will work in mobile web browsers, but also in Unplugged.

  In the Unplugged control panel application, add configuration for our new app

24

Page 30: Wireless Wednesdays: Part 3

Sync with Unplugged devices

 Unplugged will offer a native experience  Offline support

25

Page 31: Wireless Wednesdays: Part 3

Restyler

  In the download from OpenNTF we offer three themes:  Light Dark iOS7

26

Page 32: Wireless Wednesdays: Part 3

Restyler

 But you can also create your own themes  Go to http://restyler.teamstudio.com  Over 100 variables allow you to

create pretty much any UI needed   Save & Export will allow you to

preview the theme on your device  Or you can download an nsf with

the custom theme included

27

Page 33: Wireless Wednesdays: Part 3

Limitations of the Controls

 Early OS versions of webkit (mobile browser) –  E.g. used 3rd party libs for scrolling

  Some logic not obvious as developed first for Unplugged product

 Limitations due to nature of XPages model and AJAX –  E.g. saving photos or saving docs using xp:button requires

full page refresh

28

Page 34: Wireless Wednesdays: Part 3

Limitations of Controls

 Only one (form) datasource can be updated/saved  Upgrades between major releases (2.x to 3.x etc) not as easy

as copying files due to structure changes  Can use with other CSJS mobile libs but not XPages Ext Lib

(inc Mobile IBM Dojo Widgets)

29

Page 35: Wireless Wednesdays: Part 3

Unplugged Controls User Group

 A virtual user group meets first Thursday of each month  Next event tomorrow: –  http://bit.ly/1dvMWfD –  Deep dive into the UnpComputedNavigator control –  Demo of a Field Service application built using a mix of the

controls and jQuery Mobile including camera integration –  Q&A

30

Page 36: Wireless Wednesdays: Part 3

Next Release

 Version 3.2 will be release later this month –  JavaScript optimisation –  Fixed several bugs for large tablets on Android –  Improved cross database functionality

31

Page 37: Wireless Wednesdays: Part 3

32