Adapters allow you to write a mobile application’s content to a file, an e-mail message, or a database table. When you assign an adapter to an agent and the agent is triggered, the adapter writes the application’s content to the specified destination. Three default adapter types are installed:
File system (fs) – writes application content associated with an agent to a file system.
E-mail – writes application content associated with an agent to an e-mail message.
Database (db) – writes application content associated with an agent to a database table.
To create a new mobile adapter:
In the Enterprise Explorer|Mobile Automation, right-click Mobile Adapters.
Select New|Mobile Adapter|<type>, where <type> is the type of mobile adapter you want to create.
The wizard you see depends on the type of adapter you are creating.
To create a file system adapter:
Select New|Mobile Adapter|File System.
In the Create New File System Adapter dialog, complete these fields:
Description – the system automatically enters FileSystem Adapter in this field, which you can change if you want.
Directory – enter the location where you want the content written. For example, d:\temp\content\. If the folder does not exist, the adapter creates the folder when it writes the application content.
Roles – select the available roles that can edit the adapter’s properties and view the adapter’s log and click Add. Click Add All to assign all available roles.
Additional Information – these fields are filled in automatically by the system.
Click OK
To create an e-mail adapter:
Select New|Mobile Adapter|Email.
In the Create New E-mail Adapter dialog, complete these options:
Name – enter a name for the e-mail adapter.
Description – the system automatically enters “Mail Adapter” in this field, which you can change if you want.
E-mail Parameters:
Mail To Address
Subject
Message Body
Mail From Address
Include Mobile Application – select to write the mobile application contents in the e-mail message. Leave unselected to write something in the msg_body field instead of including the mobile application's contents.
Roles – select the available roles that can edit the adapter’s parameters and view the adapter log, and click Add. Click Add All to assign all available roles.
Additional Information – these fields are completed automatically by the system.
Click OK.
To create a database adapter:
Select New|Mobile Adapter|Database.
In the Create a New Database Adapter dialog, complete these options:
Name – enter a name for the database adapter.
Description – the system automatically enters Database Adapter in this field, which you can change if you want.
Database Parameters:
DB Connection Profile – select the database from the drop-down list. The JDBC Information are automatically populated when you select a database from the drop-down list.
JDBC Information – click the arrow next to JDBC Information to expand the fields, which incude:
Username – the database user for the JDBC database connection.
Password – the password for the database user for the JDBC connection.
JDBC URL – the connection URL used for the JDBC connection.
JDBC Driver – the database driver used for the JDBC connection.
Table Name – click Select Table to activate the Select Table dialog. Select a table from the list, and click OK.
Click Create Table to create a new database table.
Key/ID Column Name – this is the table field into which the application ID is written. Click Select Key Column to activate the Select Column Dialog. Select a key column from the list, and click OK.
Content Column Name – this is the table field into which the application's content is written. Click Select Content Column to activate the Select Column dialog. Select a column from the list, and click OK.
Roles – select the assigned roles associated with who can edit the adapter’s parameters and view the adapter log and click Add. Click Add All to assign all available roles.
Additional Information – these fields are completed automatically by the system.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com