Download presentation
1
Pocket PowerBuilder Features
Don Clayton – Intertech Consulting, Inc.
2
Agenda Mobile Computing Landscape Pocket PowerBuilder Key Features
Developing Applications with Pocket PowerBuilder Related Technologies Summary Additional Resources
3
m-Business Applications
Consumer Business Stock trading - Sales force automation Remote banking - Insurance adjustor Mobile portfolio management - Dispatch, track & trace Directory & location services - Inspection, compliance Self-service kiosk systems - Warehouse, pick and pack Infotainment - Retail, POS - Hospitality - Healthcare - Defense
4
Mobile Application Architecture
5
Mobile Application Architectures
Smart Client vs. Thin Client Smart Client Some business logic resides within the client Logic updates require client redistribution Offline processing Synchronization required for data integration Thin Client All business logic is invoked from a server Logic updates can occur without client redistribution Online processing only Synchronization is not required to ensure fresh data
6
Agenda Mobile Computing Landscape Pocket PowerBuilder Key Features
Developing Applications with Pocket PowerBuilder Related Technologies Summary Additional Resources
7
Pocket PB Overview First conceived and proposed to Sybase as an ISUG Enhancement Request Early prototypes targeted Palm platform Lack of GUI context moved development to Pocket PC Provides RAD 4GL in an environment PB developers are already familiar with Leverages existing knowledge, business rules, and development
8
Pocket PowerBuilder Key Features
Productive 4GL IDE Supports complete development cycle Rich component set Visual development with minimal coding DataWindow control Single component providing sophisticated data representation Built in SQL for selects, updates, inserts and deletes Tight integration with SQL Anywhere Studio Easily develop mobile ‘smart client’ applications with ASA Integration with MobiLink for data synchronization
9
Pocket PowerBuilder Key Features
Productive 4GL Environment Component Palette Preview Window Property Inspector Debug Information
10
Pocket PowerBuilder Key Features
Productive 4GL Environment Complements PowerBuilder for Windows CE deployments Based on core PowerBuilder 9 IDE Similar look and feel, but separate IDE Ability to export PB projects and import them into PocketBuilder Rich Set of components Command Button Picture Button CheckBox Radio Button Static Text List View Tree View List Box DropDown List Box Edit Mask Single Line Edit MultiLine Edit Progress Bar Scroll Bars Line Oval Rectangle Tabs and many, many more!
11
Differences from PB No PFC! Unsupported Features Unsupported Functions
MDI Applications EAServer Connections Web and JSP Targets Automation Server Unsupported Functions OLE DDE CORBA Printing Rich Text Among others
12
New File Extensions PKW – Workspace PKT – Target PKL – Library
PKD – Runtime Library PKR – Resource File
13
New Wizards Import desktop to CE Export CE to desktop
Pocket PowerBuilder IDE Import desktop to CE Migrates PowerBuilder libraries to Pocket PowerBuilder format New libraries copied to same directory as old libraries with .PKL extension Export CE to desktop Migrates Pocket PowerBuilder libraries to PowerBuilder 9.0 format New libraries copied to same directory as old libraries with .PBL extension MobiLink Synchronization for ASA Generates objects for launching MobiLink synchronization from remote client Optional window to change dbmlsync runtime arguments Sync User and Subscription Maintenance Available in PPB 1.01 Generates objects to maintain synchronization user and subscriptions in a remote ASA database
14
Main/Response Windows
Main Windows Show Soft Input Panel (SIP) Checkbox Close (OK) Smart Minimize (X) Response Windows No Menu Bar No Smart Minimize
15
DataWindow Control
16
DataWindow Control Advanced control for displaying and manipulating data Available in many formats Freeform Graph Grid Group Tabular Reuse existing DataWindows with minimal effort
17
SQL Anywhere Integration
Adaptive Server Anywhere mobile database Uses full data storage capabilities of Adaptive Server Anywhere on Windows CE client Database access via ODBC MobiLink data synchronization MobiLink bi-directional data synchronization used to integrate with other enterprise databases (Sybase ASE and ASA, Oracle, MS SQL Server, IBM DB2) New component to manage synchronization properties
18
WinCE Fun With External Function Calls…
New Window Types Popup Calendar and INK Window Class: "SysMonthCal32" Window Class: "InkX"
19
WinCE Fun With External Function Calls…
New Window Types Custom Window Types In PocketBuilder use… hwnd = uf_createwindow("SysMonthCal32", Handle(this)) The local function… public function unsignedlong uf_createwindow(string classname, unsignedlong hwndparent) // Create a window of the specified classname // as a child of the specified window. return = CreateWindowEx_CE( 0, ClassName, "", & WS_BORDER + WS_CHILD + WS_VISIBLE, & 0,0,0,0, & hwndParent, 0, 0, 0 ) End Function Refer to PPB “Samples\misc\reeds_tests.pkt”
20
Agenda Mobile Computing Landscape Pocket PowerBuilder Key Features
Developing Applications with Pocket PowerBuilder Related Technologies Summary Additional Resources
21
Developing an Application
4 Main Steps Application Design Application Development Application Testing Application Deployment
22
Application Design This helps when porting to other platforms
Good UI is very important More important than on the desktop? Handheld <> desktop No keyboard Small screen Platform differences How do you squeeze lots of information onto a small screen? Tab controls, menus, etc. Iterative development Keep application logic separate from GUI! This helps when porting to other platforms
23
Application Development
Familiar IDE for PowerBuilder Developers PowerBuilder Objects can be imported into Pocket PowerBuilder Pocket PowerBuilder objects can be imported into PowerBuilder Most development is visual Drag and drop components and database access Development Platforms Windows 2000 Windows XP
24
Application Testing On the Desktop On a device Emulator
Testing can occur in three ways: On the Desktop Does not use the same VM, therefore not accurate representation of device Good for quick testing early on On a device Emulator Uses Windows CE VM, but not for the same chipset as physical device Pocket PC 2002 Emulator is decent On the device itself Best way to determine if application will work correctly at deployment Can also test network connectivity at this point
25
Developing an Application
Test EVERY part of your application: Device Application Network(s) Synchronization Integration with back-end …
26
Recommend using device with Remote observer application
Project Painter Deployment Options * CE Device (ARM only) PPC 2000 Emulator PPC 2002 Emulator Desktop Build CAB File Version Information – Desktop only Recommend using device with Remote observer application
27
Application Deployment
Pocket PC applications are often distributed as CAB files Pocket PC SDK comes with ‘cabwiz’ which is a utility to package applications into self installing CAB files Deployment techniques are being researched by Pocket PowerBuilder team Deployment to multiple devices in remote locations can be facilitated by application deployment and management software
28
Packaging and Deployment
Overview Generate a CAB file Single package Single Platform: “my_app.ARM.CAB” Installed and Uninstalled Basic level of User Deployment Generate a “setup” program The “my_setup.exe” which does everything. Multiple CAB Files Multiple Platforms May Contain PK*.DLL redistributable files too Easiest level for final customer Pocket PB Helps You – Project Painter
29
Package For Deploy (CAB)
CAB file Project Painter – CheckBox: “Build CAB File for Distribution” Generates “inf” file and runs “CabWiz” from Microsoft. INF file is an ASCII text file We leave the INF file and the BAT file around for your modification Compatible with PPC-2003 standards Uses Installation Directories Uses Version Information fields Company Name “Provider Name” Product Name “Application Name” Description comment in header Copyright comment in header Version comment in header
30
Developing an Application
PocketBuilder applications can be run on the mobile device in two ways: Using the ‘stub’ application that is installed into the Pocket PC start menu as Pocket PowerBuilder 1.0 2) By clicking directly on the application .exe (which is put into the ..\windows directory by default) Deployment Platforms ARM based Pocket PC devices This covers all devices coming out with Pocket PC 2002 operating systems MIPS, SH3 chipsets are not supported as device manufacturers have all but stopped making these devices
31
Application Architecture
Device Enterprise Consolidated Database (Sybase/Oracle/ Microsoft/IBM) Pocket PowerBuilder Virtual Machine Sample Application) MobiLink ASA ML TCP/IP HTTP HTTPS ActiveSync (wired or wireless)
32
Agenda Mobile Computing Landscape Pocket PowerBuilder Key Features
Developing Applications with Pocket PowerBuilder Related Technologies Summary Additional Resources
33
Adaptive Server Anywhere (ASA)
Enterprise Features for mobile devices Standard SQL interface Stored procedures and triggers Transaction processing Row-level locking for referential integrity Scheduling and event handling Multiple Platform Support Wintel platforms – Win95/98/ME, NT, 2000, CE Novell Netware Unix – Solaris, Linux, HP-UX, AIX, Solaris x86
34
Database (DSN) Connections
DSN File on Pocket PC Copied to root directory of Pocket PC Open Main Window, then connect to DB (use post event) Only Sybase SQL Anywhere supported currently
35
MobiLink A two-way synchronization technology for large scale mobile database deployment Remote database (mobile, embedded, or workgroup database server) Consolidated database (enterprise, workgroup, or desktop database) A server that processes synchronization requests from remote databases Synchronization Streams Pocket PC: TCP/IP, HTTP, ActiveSync 128-bit strong encryption of synchronization stream supported using Certicom TLS
36
MobiLink Design Goals Heterogeneous consolidated database
Scalable and robust (tens of thousands) Manageable in large deployments Support handheld and wireless devices Flexible
37
Pocket PowerBuilder Synchronization Wizard
MobiLink Synchronization in a Flash! Develop a client/server application to start… …Then add Synchronization using the Synchronization Wizard!
38
Pocket PowerBuilder Synchronization Wizard
The MobiLink Synchronization Wizard handles ALL aspects of enterprise database synchronization Remote database connection Publications for synchronization Synchronization server connection information Synchronization client options User interface generation Everything that the Wizard generates if fully modifiable later on by the application developer!
39
Manage Anywhere Studio
Automated central software distribution Including file distribution and collection Complete device-level hardware and software inventory Support mission-critical mobile environment Self-healing configurations Remote control – reach out and help somebody Security management Keep virus protection, OS up to date Guard against unauthorized software, configuration Optimized for mobile, remote, embedded Simple for administrator and end-user Offline operation, suspend & resume, minimal bandwidth use Manage desktops, laptops, PDAs
40
Pocket PC Emulators Pocket PC 2000 Emulator Pocket PC 2002 Emulator
Easy to set up and use Does not give accurate representation of device Many ‘bugs’ Pocket PC 2002 Emulator Setup is more complex More accurate in terms of device emulation Both emulators can be downloaded from Microsoft Website Recommend using PPC 2002 emulator
41
Pocket PC Power Toys Set of applications to increase productivity of Pocket PC development Most useful of these tools is the Remote Display Control This utility allows you to view your physical device on your PC screen Provides data entry for on-device testing
42
Agenda Mobile Computing Landscape Pocket PowerBuilder Key Features
Developing Applications with Pocket PowerBuilder Related Technologies Summary Additional Resources
43
Summary Pocket PowerBuilder provides the features that are required to develop enterprise smart client applications PowerBuilder users can use their existing skills and application code to develop Windows CE applications Windows CE applications are similar, but yet quite different than desktop applications, so design your applications accordingly There are many related technologies available for developers to increase the sophistication of their applications, and their productivity at the same time
44
Summary Tips Always think ahead
Don't forget about your current development practices Use the devices and the networks to learn them Don't forget about security Figure out what part(s) of your application make sense for the device A good UI is very, very important Use a local data store Think ahead – data size (devices less upgradable than a laptop), platforms (when developing, keep porting in mind), … Dev practices – treat mobile like desktop Use devices, networks – wireless LAN hardware is cheap – < $200 for AP and card Security – minimize risk, not eliminate it Good UI – small device, can’t afford to waste space
45
Additional Resources Pocket PowerBuilder www.sybase.com/pocketpb
SQL Anywhere Studio Manage Anywhere Studio Mobile and Wireless Design Essentials Microsoft Pocket PC Info
46
Pocket PowerBuilder Overview
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.