This tutorial shows how to create a multiple-page mobile application. In the tutorial you set up three applications—a master application, and two drill-down applications—that extract data from the sample database (sampledb) included with the product. Then you use the Event wizard to create two events—one for extracting department information and one for extracting employee information. Finally you use all the components to create a multiple-page mobile application that can be deployed to a mobile device. These tasks are described in these sections:
This procedure assumes you:
Know how to log in to Mobile Web Studio.
Know how to create and approve an application in Mobile Web Studio.
Understand basic SQL syntax
Understand how the @OP tag works as described in the Unwired Accelerator Feature Guide.
Make sure sampledb database running.
This tutorial uses a direct JDBC connection to sampledb when
creating database elements. An alternate approach is to use connection
cache with sampledb, which is demonstrated
in “Mobile applications with transaction support tutorial”.
The advantage of connection caches is that connection details, such as JDBC connection string, user name and password, driver, and so on, are defined when the application server is set up and available to developers building JDBC applications. The disadvantage is that connection changes, which must be made through the application server, may cause applications to break.
In general, connection cache definitions are safer and easier to use, but if a connection to a database is required that is not available through a connection cache, you may have to either use the full JDBC specification, or to create the necessary connection cache definition through the application server.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |