Before you run your application in PocketBuilder to preview and test it, you need to start the MobiLink server.
Close any painters that are open in PocketBuilder.
Select Tools>Database Profile to open the Database Profiles tool.
Expand the ODB ODBC node and then expand the Utilities node.
Double-click the MobiLink Synchronization Server utility.
For the MobiLink version, select SQL Anywhere 10.
For the ODBC connection string, type DSN=SalesDB.
Click OK.
The MobiLink Synchronization Server runs and is ready to accept requests.
Close the Database Profiles painter.
Select Run>salesdb_tutorial from the menu bar.
The SalesDB application connects to the local copy of the SalesDB_remote remote database and the Sync Options dialog box opens.
In the Sync Options dialog box, you can type syncronization information including the MobiLink user name and password.
For testing purposes, type 50 as the user name in the MLUser text box, leave the MLPassword text box blank, and maintain the default for all other options.
If you use 50 as the user name now, when you run the application on your device or emulator you should use another user name such as 51 or 52.
Click OK to synchronize.
First the synchronization completes.
Click OK when the synchronization completes.
The application starts on the desktop.
Since you can run PocketBuilder applications from the design-time environment, it is possible to develop and test applications without a device or emulator.
Now you test your application.
Explore the layout of the application.
Click the Order>New menu item and add a new order.
The application handles orders that have been modified in the remote database.
Click the Next, Approve, and Deny buttons.
Here the Approve button is clicked and the Good Work note is selected.
Click the OK button to close the Note.
Select File>Exit to exit the application and return to PocketBuilder.