Introduction to creating applications  Creating an application with more features

Chapter 2: Getting Started

Creating a basic application

This tutorial introduces you to creating and approving an application that accesses currency exchange rates on a currency exchange Web site, and demonstrates how to use grid rules to optimize the data for display on a mobile device.

NoteSome tutorials use public Web sites, which are subject to change. You may notice some variation in your results.

Also, keep in mind that some stock applications, such as Content Explorer, cannot be mobilized for the PDA, since they require Java or Java plug-in support.

StepsCreating and approving an application

  1. Log in to the Mobile Web Studio.

  2. Click Applications in the Build menu, and select New under Application Manager Status in the middle pane.

  3. Click the New button in the Application Manager toolbar. The Application Builder window displays.

  4. In Application Builder, click Add to launch the New Web Element window.

  5. In Location, enter the following URL:

    http://www.xe.com/ict/
    

    Click Find or press Enter to display the Interactive Currency Table Web site.

  6. Click the Click Here to Generate Currency Table button located at the bottom of the window. You do not have to change anything, since this tutorial uses the default settings on the Web site.

    Figure 2-1: Capturing a Web site

  7. Click Next in the top right portion of the New Web Element window. The page reloads.

  8. When the Web page reloads, move your mouse over the table of currencies and click Algeria Dinars. A flag follows your cursor with abbreviated instructions.

    The table of currencies redisplays in several presentation formats, including a grid format as shown in Figure 2-2. You can use the scroll bar to scroll through the various options.

    Figure 2-2: Selecting a grid

  9. Click Select to the left of the grid, then click Next in the top right section of the window. The Split window displays.

  10. Click Next to bypass the Split window as this tutorial does not demonstrate the feature. The Define window displays. The Define window enables you to define the grid layout.

  11. Use the Define window to identify record 2 as the header row. In the Define Record Layout section:

  12. Click Next to continue. The Filter window displays. The Filter window enables you to identify which rows, columns, and fields to use in the application, and which to exclude.

  13. Use the Filter window to make a few modifications to the table. The following modifications remove the first row from the table and rename the headers that appear above the table columns.

    To remove the first row from the table:

    To rename the title of the second column to Currency Name:

    When you finish adding the two filter rules, your table should look similar to one in Figure 2-3.

    Figure 2-3: Adding filter rules

  14. Click Next. The parameter definition window displays with a list of parameters used to capture the table.

  15. Check the Variable check box to the left of “currency.” This exposes the parameters for the variable.

  16. Make sure the Default Value is set to “USD”, without quotes, and click Next. The Window Preview window displays the modified table.

  17. In Element Name, enter Currency Table as the name for this Web element, and click Next. The Continuous Capture window displays.

  18. Click Finish to bypass the Continuous Capture window as this tutorial does not demonstrate this feature. The New Web Element window closes.

  19. On the Application Builder window, notice that the Currency Table element appears under Element List.

  20. Click Save to create the application.

  21. On the Finish window, make this entry (otherwise accept the defaults):

    Content tab In Name, enter CurrencyTable (no space).

    Window Preview At the bottom of the Finish window, you can see a preview of your application.

  22. Click Finish to save the application, and click OK in the Application Saved Successfully window.

  23. Click Close in the upper-right corner to close the Application Builder window.

  24. In Mobile Web Studio, click New under Application Manager Status in the middle pane. The CurrencyTable application displays in the detail pane.

    When applications are initially saved, their status is set to “New.” To make the CurrencyTable application available for use in a mobile device or in a Composite Application, you must first change the status of the application to Approved.

  25. To approve the application:

  26. Select Approved under Application Manager Status and verify the CurrencyTable application displays.

You have successfully created an application using a Web site as a source, and customized the appearance by including only certain data and modifying column names.





Copyright © 2005. Sybase Inc. All rights reserved. Creating an application with more features

View this book as PDF