Overview  Chapter 7: Managing M-Business Anywhere

Chapter 6: Creating a Multipage Mobile Charting Application

Charting tutorial

To illustrate the use of drill-down charts using server-side click-across, this section contains procedures to create a table of data with the stock market’s most active stocks and use drill-down charting to get the quote page with details of a selected stock. The information is presented in a bar chart.

To create a drill-down charting application for two chart applications, there must be a relationship between the category or series names of the first chart and the parameters used in defining the second chart’s data source.

StepsCreating the Stock Details application

  1. Log in to Mobile Web Studio.

  2. Select Applications from the Build menu in the left pane, select New from the Application Manager Status menu, then click the New button to launch the Application Builder.

  3. Click the Add button to select Web Element

  4. When the New Web Element window appears, in location, enter http://finance.yahoo.com/, and click Find or press Enter.

  5. When the Yahoo Finance Web site displays, type SY in the Enter Symbol field below the Yahoo Finance title bar, and click GO.

  6. Verify that One Click is selected as the Format, and click Next.

  7. Place the cursor over the Last Trade cell and click the mouse. The window refreshes displaying various presentation possibilities.

  8. Click Select to the left of the top grid capture, then click Next.

  9. On the Split window, click Next to bypass the options.

  10. On the Define window, click Next to bypass the options.

  11. On the Filter window, in the Add Filter Rule section, add a rule to include some of the rows. To include only rows 1, 4, 5, and 8:

    The result looks similar to this image.

  12. Click Next. The parameter definition window displays.

  13. On the parameter definition window, select the Variable option for the “s” parameter and complete these options for that parameter (accept the defaults for all others):

    Click Next.

  14. On the Window Preview, enter Stock Details for the element name and click Next.

  15. On the Continuous Capture window, click Finish because you do not want to perform a continuous capture.

  16. In the Application Builder, click Save to create the application.

  17. On the Finish window, make this change (accept the default for all others):

    Content tab

    Roles tab Click Add All to add all of the available roles to the assigned roles list.

    Click Finish, and click OK to confirm.

  18. Click Close to close the Application Builder.

  19. In the Mobile Web Studio main window, select New from the Application Manager Status menu, then right-click the Stock Details application in the details pane and select Create Chart. The Create Chart window displays.

  20. Under Choose a Selection, click Select next to the table and click Next.

  21. Complete the following options in the Select Chart Type window:

    Click Next to continue.

  22. On the Chart Parameters window, set these options:

    Click Next to continue.

  23. In the Preview window, you see a stock details bar chart in blue, with labels for Value and Time.

    Click Finish to save the application, and click OK to confirm.

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

  25. In Mobile Web Studio, click New under Application Manager Status. The Stock Details application displays in the detail pane.

  26. Approve the application:

  27. Select Approved under Application Manager Status and verify the Stock Details application displays.

StepsCreating the Most Actives stock application

  1. In Mobile Web Studio, select Applications from the Build menu in the left pane, select New from the Application Manager Status menu, then click the New button to launch the Application Builder.

  2. Click the Add button to select Web Element.

  3. When the New Web Element window appears, enter http://finance.yahoo.com/ in the Location field and click Find or press Enter.

  4. When the Yahoo Finance Web site displays, click the Most Actives link, located in the middle column below Top Stories and above Market Overview.

  5. Verify that One Click is selected as the Format, and click Next.

  6. Perform a one-click capture on the Most Actives stock table by clicking on Symbol (the cursor flag provides instructions). The window displays various presentation styles.

  7. Click Select to the left of the first grid, which should look like the capture option shown below, and then click Next.

  8. On the Split window, notice that Column 3 includes several values—trade and time. Split Column 3 into separate columns to accommodate each value:

    Click Next.

  9. On the Define window, click Next to bypass the option.

  10. On the Filter window, in the Add Filter Rule section, set the following:

    Click Next.

  11. On the parameter definition window, click Next to bypass the options.

  12. In Window Preview window, enter Most Actives for the Element Name, and click Next.

  13. On the Continuous Capture window, click Finish.

  14. On the Application Builder, click Save to create the application.

  15. In the Finish window, make this change (otherwise accept the defaults):

    Content tab

    Click Finish, then click OK to confirm.

  16. Click Close to close the Application Builder.

  17. On the Mobile Web Studio main window, select New from the Application Manager Status menu.

  18. Right-click the Most Actives application in the details pane and select Create Chart.

  19. On the Create Chart window, click Select next to the table and click Next.

  20. Complete the following options in the Select Chart Type window:

  21. Click Find Application.

  22. When the Search window displays, click Search, select the Stock Details application in the Results pane, then click Add. The Name, Resource ID, and Window ID of the associated application display.

  23. Click Next to continue.

  24. In the Chart Parameters window, complete these options:

    Click Next to continue. The Most Actives chart displays in the Preview window.

  25. In the Preview window, click Finish.

  26. In the Mobile Web Studio main window, right-click the Most Actives application in the detail view and select Approval Status | Approved.

  27. When you see the confirmation that the application was saved successfully, click OK.

StepsPreviewing the drill-down chart application

  1. Select Approved from the Application Manager Status menu.

  2. Select the Most Actives application in the detail pane and click Preview.

  3. Click one of the bars in the bar chart. You see the Stock Details charting application with a bar chart for the selected company.

NoteThe Most Actives application is used in “Composite application tutorial”.





Copyright © 2005. Sybase Inc. All rights reserved. Chapter 7: Managing M-Business Anywhere

View this book as PDF