- internal and confidential - mobile solutions for the enterprise onebridge mobile agent training

19
- Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

Upload: marilyn-jordan

Post on 03-Jan-2016

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Mobile Solutions for the Enterprise

OneBridge Mobile Agent Training

Page 2: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

OneBridge Mobile AgentOneBridge Mobile Agent

Page 3: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

OneBridge Mobile AgentOneBridge Mobile Agent

What is it?

“Rich” client application with a browser look and feel

Supports online & offline operation

Special features like Bar Code scanning, IR Printing and Signature Capture

Unlike J2ME, Mobile Agent allows you to use device specific API (for things like barcode, etc.)

Page 4: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

OMA ArchitectureOMA Architecture

Win CE File System

HTML View Control UI

PSP Engine

HTML file

PSP Files

.cdb DB

Pocket PC

ADOCE

Nav. buttons

Links

Page 5: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

OneBridge Mobile AgentOneBridge Mobile Agent

When should it be used?

When application access is required offline

Page 6: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Database

Supports any ADOCE enabled database

Use Pocket Access for prototype

SQL Server CE for real deployment

Page 7: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Language

XHTML based tags

...

<FORM METHOD=post ACTION="read_sig.oma"><TEXTAREA COLS=30 ROWS=5 NAME=signature>sig:</TEXTAREA><br><INPUT TYPE=submit value="submit"></FORM>

...

Page 8: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Tags for retrieving and displaying data

Database Data Var Recordset

Page 9: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Database

Database tag is used to connect to a database Only one database connection is allowed at a time

Example:

<Database Name="\Storage Card\My Documents\Northwind.cdb">

Page 10: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Data

Data tag displays data for the user (writes data to an HTML document)

Data can be formatted as it is being displayed

<data value="1/3" format="fix3">

Output: 0.333

<data value=" '5551234' " format="@@@-@@@@">

Output: 555-1234

Page 11: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Var

Holds variables

Variables are global by default

Assign the value a3 to the string ind<var "string ind='a3' ">

Please the computed value in the variable<var “local x=(1+rs1.TaxRate/100)*rs2.Value">

Page 12: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Recordset

Access and search a database

List the first and last names of all employees in the "emp_list" table:<recordset name="namelist" SQL="select * from emp_list order by LastName"> <data value="namelist.Firstname"> <data value="namelist.LastName"><br></recordset>

Page 13: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

The importance of index.txt

When launched, OneBridge Mobile Agent searches for index.txt or index.htm

It must be located in either "\My Documents" or "\Storage Card\My Documents”

Page 14: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Signature Capture

Programmatically capture a user signature

Example:

<TEXTAREA NAME=CustSig COLS=30ROWS=4>sig:</TEXTAREA>

Page 15: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Buttons

Allows the navigation buttons to be set programmatically

Example:

<NAME="BACK" HREF="index.txt">

Page 16: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Schemes

Protects the programmer from the location of the resources

PSP://, VAR://, DB://, SYS://, and sysPrefix

The href used will be "db://tblApp/name/data/sub1

<var 'sysPrefix="db://tblApp/name/data/" '><a href="sys://sub1">Sub1</a>

Page 17: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Your Turn!

Code the following example…

Page 18: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

Hands-on OMA DevelopmentHands-on OMA Development

Hello World!

Hello <Your Name>!

Add Format

Connect to Database and List Data

Display details

Capture Signature

Page 19: - Internal and Confidential - Mobile Solutions for the Enterprise OneBridge Mobile Agent Training

- Internal and Confidential -

To learn more…To learn more…

P:/engineering/PSP/documentation

Contact Info: Email: [email protected] Phone: (414) 224 5138 Cell: (414) 324 0522