OneBridge Mobile Agent

Download Report

Transcript OneBridge Mobile Agent

Mobile Solutions for the Enterprise
OneBridge Mobile Agent Training
- Internal and Confidential -
OneBridge Mobile Agent
- Internal and Confidential -
OneBridge 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 Architecture
Pocket PC
PSP
Files
PSP
Engine
.cdb
HTML
file
ADOCE
DB
Nav.
buttons
Win CE File
System
Links
HTML View
Control UI
- Internal and Confidential -
OneBridge Mobile Agent

When should it be used?

When application access is required offline
- Internal and Confidential -
Programming Mobile Agent

Database

Supports any ADOCE enabled database

Use Pocket Access for prototype

SQL Server CE for real deployment
- Internal and Confidential -
Programming 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 Agent
Tags for retrieving and displaying data

Database

Data

Var

Recordset
- Internal and Confidential -
Programming 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 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 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 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 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 Agent
Signature Capture

Programmatically capture a user signature
Example:
<TEXTAREA NAME=CustSig COLS=30ROWS=4>sig:</TEXTAREA>
- Internal and Confidential -
Programming Mobile Agent
Buttons

Allows the navigation buttons to be set
programmatically
Example:
<NAME="BACK" HREF="index.txt">
- Internal and Confidential -
Programming 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 Agent
Your Turn!

Code the following example…
- Internal and Confidential -
Hands-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…

P:/engineering/PSP/documentation

Contact Info:



Email: [email protected]
Phone: (414) 224 5138
Cell: (414) 324 0522
- Internal and Confidential -