Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG Tech13

42
Mia Urman, AuraPlayer @miaurman [email protected] Take Your Oracle Forms on the Road Using ADF Mobile

Transcript of Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG Tech13

Page 1: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Mia Urman, AuraPlayer

@miaurman

[email protected]

Take Your Oracle Forms on the Road

Using ADF Mobile

Page 2: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Mia UrmanCEO, AuraPlayer

Oracle ACE and Oracle Forms Evangelist

• 15 years supporting, training and consulting Oracle Tools

• 7 years at Oracle as a senior support analyst and local product manager of Forms and ADF.

• Founder of AuraPlayer - Oracle Forms modernization solutions to unlock Forms systems and fast-track to a Mobile / SOA architecture / Cloud

• ODTUG board member , international speaker at Kscope, OOW, UKOUG

Page 3: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Session Agenda• Why Go Mobile?

• Oracle ADF Mobile Overview

• Components of ADF Mobile

– The Data Layer

– The UI Presentation Layer - AMX Components

– Integrating Device Features

• Running Oracle Forms on the Mobile

• Getting Started

Page 4: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13
Page 5: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

GLOBAL MOBILE

3G SUBSCRIBERS

5 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 6: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

What Device is Accessing Your

Application?

Page 7: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Client Server

Evolving With Oracle Forms

Page 8: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Client Server

Mobile

Evolving With Oracle Forms

Page 9: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Understanding Mobile Requirements

• Application Functionality - No mouse, Touch gestures

• Device Type – Phone / Tablet

• Screen size

• Network type – Security , Speed

• Device features integration

• Types of Users – Occasional, Internal/external

• Type of Applications – Browser Based / Hybrid

Page 10: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Mobile Web App(Viewed in Safari)

3 Mobile Application Types

Mobile WebApps

Online application accessed through mobile device browser

Browser governs access to local storage and device services (camera, GPS, etc.)

Highly reusable code

Highly portable

Native MobileApps

Application installed & runs on device

Optimized for specific mobile platform and form factor

Direct access to local storage and device services

Code reuse can be complex

Portability requires work

Hybrid MobileApps

Application installed & runs on device with HTML5 UI

Optimized for specific mobile platform & form factor

Direct access to local storage and device services

Code reuse simplified

Portability simplified

Native App(iOS)

Page 11: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Oracle ADF – Multi Channel Framework

OracleADF

Database

Web Services

CloudWeb

MobileOffice

Legacy Systems

Oracle

Applications

Page 12: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Java HTML5

Use Existing Skills Set

Built On Standards

Use Existing Skills Set

Built On Standards

Oracle

ADF Mobile

Oracle ADF MobileUnique Hybrid Mobile Framework

Page 13: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

ADF Mobile Overview

• Thin Native container on each platform

– Allows for device interaction

– Push notification support

• HTML5/JavaScript Frontend

• Java Backend

• Encrypted SQLite

Page 14: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Focused on Productivity

•Oracle JDeveloper Extension

•Declarative and visual development

•Integration with Apple Xcode and Android SDK

Component based UI construction

Task Flows

Data Controls

Packaging

Deployment

Debugging

Integrated Development

Environment

Page 15: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Business Services Development

• Code logic with Java

• Lightweight JVM

• Easy access to Remote - Web service

– SOAP

– REST XML, REST JSON

• Local Business Logic

– Java Classes

– SQLite DB - Portable, lightweight relational database

Page 16: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

UI Content options• Device native user experience

• Local AMX File

– JSF-like file built visually in JDeveloper

– Generated into HTML/JS

on device at RT

• Remote URL

– Any server-side HTML

• Local HTML File

– Coded with any third-party HTML5

frameworks

Page 17: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

ADF Mobile XML Components (AMX)

• XML format built visually in

JDeveloper

• 50+ Components

• Declarative data binding

• Rendered into HTML5

on device at RT

Page 18: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

CarouselT-Maps

ListView

Gauge

Charts

GeoMap

Basic Components Forms

Page 19: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

DVT Charts, Gauges, Maps

Page 20: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Device Rich Features

Page 21: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Do you still carry around

one of these?

Page 22: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Device Features Interaction

• Leverages Apache Cordova

• Drag and drop to use

– Email

– SMS

– Contacts

– GPS

– Camera

• Or access programmatically

Page 23: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Gesture Navigation Support

• Configure components to react to the following gestures:

– Swipe to the right, left, up, down

– Tap-and-hold

• Set the “Type” attribute when using the following

operations:– Set Property Listener (e.g. setting Scope Variables)

– Action Listener (e.g. invoking Backing Beans)

– Show Popup Behavior & Close Popup Behavior

– Navigating between Panel Items

Page 24: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Data Caching Challenges• Mobile devices can lose/turn off connectivity

• Offline access to data is a common requirement

• But it will increase the complexity of your application

• If you cache data locally you must consider

– When to cache the data

– How much data to cache

– When to synchronize updates

– Recording the order of updates

– How to deal with synchronization conflicts

– Security of the data if the device is lost

Security

Page 25: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Getting Started

Oracle Forms Using ADF Mobile

Page 26: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13
Page 27: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Exposing Oracle Forms to ADF Web Desktop Mobile Office

Database Web Services Legacy Systems Applications Unlimited

Page 28: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Exposing Oracle Forms to ADF Web Desktop Mobile Office

Web Services

Page 30: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

• AuraPlayer wraps pre-recorded Forms scenarios as Webservices

• Runs native business logic on the existing Forms server from ADF Mobile/ ADF /

APEX / Java

• When the system evolves, the service can be easily replaced, with newer

redeveloped service/technology.

• No Java applet – Runs Form without UI

Creates native ADF datacontrols that runs

Oracle Forms silently in the background

• Allows you to develop, test

and maintain one core system.

ADF Integration Features

Page 31: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Exposing Forms to Mobile: The Process

Understand Business Process

Record & Deploy Scenario

Generate WS with wizard

Create ADF Mobile App

Run Your Mobile App!

Page 32: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

• Choose the Oracle Forms business process to record

• Select input / Output data to capture from Forms

• Identify expected results – popups, messages, errors

Understanding the Business Process

Page 33: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

• Record the Forms business process using the AuraPlayer Toolbar

• Automatically Generate Webservices using the AuraPlayer Service

Manager

Recording Demo

Webservice generation Demo

Deploy Oracle Forms as WS

Page 34: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Create ADF DataControls for AuraPlayer Webservice URL-URL is simply copied from the AuraPlayer service manager

Create AMX pages and design new mobile UI

DEMO

Create ADF Mobile UI - Jdeveloper

Page 35: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Define TaskFlow with Validations1. Define the navigation flow between the pages

2. Add validations (managed bean) that should occur upon

success or failure of events

Page 36: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Demo Time

Page 37: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Oracle

11g DB

Desktop

Mobile Devices

DMZ

External Network

Oracle

Forms

11g

Server

Secure Weblogic Server

Runs Webservice

FW

Service Manager

AuraPlayer – Solution Architecture

Native

ADF Mobile app

Page 38: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

AuraPlayer - Same Forms Business Logic Multiple UIs

Page 39: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

What You Need

• Development

– Oracle JDeveloper 11.1.2.3

– Oracle ADF Mobile Extension (help->check for updates)

– OraPlayer Recording Toolbar

• Deployment / testing / run-time

– iOS on Mac machine

• iOS SDK+Xcode 4.4.x - require iOS Developer Program Membership

– Free version (Xcode 4.5) is known to work but not certified

– Android

• Android SDK (API Level 9 Min, 16 recommended) + Android device

– OraPlayer Server to run Oracle Forms system

Page 40: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

More Information

• Mia Urman - [email protected]

• ADF Mobile on OTN

– Datasheets,Tutorial,Demos

• ADF Mobile Blog – http://blogs.oracle.com/mobile/

• Oracle Forms Community Blog – http://www.Oracleformsinfo.com

• Twitter.com/Jdeveloper, Facebook.com/Jdeveloper

• Twitter.com/miaurman, Twitter.com/auraplayer

• AuraPlayer – www.auraplayer.com or [email protected]

Page 41: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

My ADF Mobile Blog

• Tips and Tricks

• Common Bugs

• How to documents

• Presentations

www.ADFMobileInfo.com

Page 42: Take Your Oracle Forms on the Road Using ADF Mobile - UKOUG  Tech13

Join the ADF Mobile Community

Twittertwitter.com/JDeveloper

Facebookfacebook.com/JDeveloper

Oracle’s WebLogic blogblogs.oracle.com/mobile

Oracle.com/mobile