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 the left 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 one of either:

    Click Next.

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

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

  6. 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.

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

  8. In Application Builder, save the application as described in “Saving applications”.

NoteSee Chapter 11, “Deploying Mobile Applications” for information about deploying applications to mobile devices, and see Chapter 9, “Building Pages,” for instructions on adding applications to pages.