UltraLite User's Guide
Tutorial: A Sample UltraLite Application
Lesson 3: Start the sample application and synchronize
The sample application for the Palm Computing Platform uses HotSync as the synchronization mechanism.
To start and synchronize the sample application
Place your Palm device into its cradle.
When you start the sample application for the first time it must be able to synchronize, to download an initial copy of the data. This step is required only the first time you start the application. After that, the downloaded data is stored in the UltraLite database.
Launch the sample application.
From the Applications view, tap CustDB. An initial dialog displays, prompting you for an employee ID.
Enter an employee ID.
When running through this section as a tutorial, enter a value of 50. The application also allows values of 51, 52, or 53, but behaves slightly differently in these cases.
A message box tells you that you must synchronize before proceeding.
Synchronize your application.
Use HotSync to obtain an initial copy of the data.
Confirm that the data has been synchronized into the application.
From the Applications view, tap the CustDB application. The display shows an entry sheet for a customer, with entries.
You have now synchronized your data.
For the next step, see Lesson 4: Add an order.
HotSync synchronization requires a MobiLink HotSync conduit to be installed on the desktop computer. The SQL Anywhere setup program automatically installs a conduit for the CustDB sample application. For other applications, you would have to install the conduit yourself using the dbcond8 command-line utility. The command line used to install the conduit for the CustDB sample application is as follows:
dbcond8 -n CustDB Syb2
where CustDB is the name which HotSync Manager displays, and Syb2 is the Palm creator ID for the application.
To start and synchronize the sample application ( Palm Emulator )
Start the emulator.
Ensure the emulator is set up for TCP/IP synchronization:
Right-click the emulator and choose Settings
In the Properties dialog, check Redirect NetLib Calls to Host TCP/IP.
Launch the sample application.
From the Applications view, tap CustDB. An initial dialog displays, prompting you for an employee ID.
Enter an employee ID.
When running through this section as a tutorial, enter a value of 50. The application also allows values of 51, 52, or 53, but behaves slightly differently in these cases.
A message box tells you that you must synchronize before proceeding.
Set the application to synchronize using TCP/IP:
Tap the Options menu.
Set the Conduit to Disabled.
Set the Synch Method to TCP/IP.
Leave the Synch Parameters as host=localhost.
Tap OK.
Synchronize your application:
Tap the Synchronize menu. A set of data is uploaded and downloaded.
Confirm that the data has been synchronized into the application.
From the Applications view, tap the CustDB application. The display shows an entry sheet for a customer, with entries.