Creating XML applications  Database element JNDI connection cache option

Chapter 3: Developing Applications

Creating database applications

A database element allows you to query a back-end database and display the results in an application.

StepsCreating a database element

  1. Log in to Mobile Web Studio and select Build | Applications. Right-click in the detail view and select New Aggregated Application.

  2. When the Application Builder appears, right-click in either frame and select New Database Element from the Element menu. You can also click the down arrow next to Add and select Database Element.

  3. In the Database Element Definition window, select either:

    Click Next.

  4. In the Split window, split columns or rows using delimiters. See “Adding split rules”. Click Next.

  5. In the Define window, define the record layout and specify a record header. See “Defining record layout”. Click Next.

  6. In the Filter window, specify filter rules to select only the relevant data from the element. See “Adding filter rules”. Click Next.

  7. This window displays only if you have defined the record layout. The Configure Parameters window displays the element’s CGI parameters. See “CGI parameters” and “Using the database table adapter”. Click Next.

  8. In the New Web Element window, enter a name for the database application in the Element Name field. Click Next.

  9. In the Continuous Capture window, click Finish to close the window and display the Application Builder with the new database element.

Regardless of the element type, the procedure to save the element and application is the same. See “Saving applications”.

NoteSee Chapter 9, “Building Pages,” for instructions on adding applications to pages.





Copyright © 2005. Sybase Inc. All rights reserved. Database element JNDI connection cache option

View this book as PDF