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.

This procedure assumes you:

StepsCreating the StockDetails 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 Add.

  4. When the New Web Element window appears, in Address, enter http://finance.yahoo.com/, and click Go.

  5. When the Yahoo Finance Web site displays, type SY in the Enter Symbol field below the Today in 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 next to the first option, 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 only rows 1, 4, 5, and 8:

  12. Click Next.

  13. On the Configure Parameters 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 StockDetails (no space) for the element name and click Finish.

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

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

    Content tab

    Click Finish, and click OK to confirm.

  17. Click Close to close the Application Builder.

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

  19. Under Choose a Selection, click Select, then click Next.

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

    Click Next to continue.

  21. On the Create Chart window, look for the Chart Parameter section, and set these options:

    Click Next to continue.

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

  23. In Mobile Web Studio, click New under Application Manager Status. The StockDetails application displays in the detail pane.

  24. Approve the application:

  25. Select Approved under Application Manager Status and verify the StockDetails 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 Add.

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

  4. When the Yahoo Finance Web site displays, click the Most Actives link, located in the left column below Market Summaries and above Investing.

    NoteWhen the Stock Market is closed, the previous day’s most active stocks display.

  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, 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 Configure Parameters window, click Next to bypass the options.

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

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

  14. In the Finish window, change:

    Content tab

    Click Finish, then click OK to confirm.

  15. Click Close to close the Application Builder.

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

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

  18. On the Create Chart window, click Select, and click Next.

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

  20. Click Find Application.

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

  22. Click Next to continue.

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

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

  24. In the Preview window, click Finish.

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

  26. 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 StockDetails charting application with a bar chart for the selected company.

NoteThe Most Actives application is used in “Creating the Most Actives stock application”.