|
|
Home Support Tutorials
|
This tutorial will show you how to create and install a simple application with one database table, that is synchronized with the mobile client.
Prerequisites:
- installed MS SQL or MS SQL Express database, installed mobiaccess Developer Pack 2.0
Creating the SERVER database
- During installation, you will be asked if you want to create a server database (later you can initiate it with mobiaccess Administration Suite), please fill in the database and login details, and create a new database (we used "Example" in this tutorial)
- Using a database management tool (e.g. MS SQL Server Management Studio), create a table that will be synchronized - we created a Staff table, with id:int as a primary key, name as varchar(50), birth as datetime, address as varchar(MAX).
- Please check SQL rights - we recommend to create a new database user, but please do not forget to add all necessary rights to it (or you can use the built-in system administrator login).
Creating a new client and make our database table to be synchronized to mobile clients:
Please start mobiVision Desktop. The default administration user name is "admin", with password "admin".
Please follow our flash tutorial how to set up synchronization and to create a new mobile client:
Desktop settings [Flash video]
Setting up syncServer:
With a file manager, please find SyncServer.properties.defaults at c:\Program Files\Infomatix\mobiSync Server\config\. Please fill in the details as it can be seen in this Sync properties [Flash video], and save it as SyncServer.properties
You should always restart the service "mobiSync Server" after modifying this configuration file (Control Panel/Administration Tools/Services).
Creating a panel to show table contents on the mobile client: Please start mobiVision Mobile Wizard to set up the necessary XML files. We create the necessary menu items, views for displaying the staff table on the mobile client: Create XMLs [Flash video]
Creating synchronization configuration options for the mobile client:
At the first synchronization, the user can set synchronization parameters (server name, port, etc.). If he/she wants to change that later, we must provide him/her some options to do this easily: Create sync config [Flash video]
Start mobile installation and synchronization
After these steps, we are ready to deploy and synchronize with our application.
In mobiVision Mobile Wizard, please select an Operating System from the list at the bottom of the page, and select Full Install. This will start deploying the application (in some cases, you will need additional software, e.g. MS ActiveSync, or Nokia PcSuite, to start installation automatically).
After installation, please set server properties (server name or IP, server port, client ID of our newly created mobile client). After synchronization has been finished, please use the user id we set for the mobile client to log in, e.g. admin/admin in our case).
|
|
|
Copyright © 2008 Infomatix Ltd. All rights reserved.
|