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

Post on 03-Jan-2016

214 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

- Internal and Confidential -

Mobile Solutions for the Enterprise

OneBridge Mobile Agent Training

- Internal and Confidential -

OneBridge Mobile AgentOneBridge Mobile Agent

- 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.)

- 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

- Internal and Confidential -

OneBridge Mobile AgentOneBridge Mobile Agent

When should it be used?

When application access is required offline

- 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

- 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>

...

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Tags for retrieving and displaying data

Database Data Var Recordset

- 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">

- 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

- 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">

- 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>

- 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”

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Signature Capture

Programmatically capture a user signature

Example:

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

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Buttons

Allows the navigation buttons to be set programmatically

Example:

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

- 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>

- Internal and Confidential -

Programming Mobile AgentProgramming Mobile Agent

Your Turn!

Code the following example…

- 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

- Internal and Confidential -

To learn more…To learn more…

P:/engineering/PSP/documentation

Contact Info: Email: awingers@viafone.com Phone: (414) 224 5138 Cell: (414) 324 0522

top related