Viewing the alert (telephone or mobile device)  Creating the schedule (Portal Interface)

Chapter 7: Using Unwired Accelerator Alerts

Creating an e-mail alert using Mobile Web Studio and Portal Interface

For this example, create a Web element in Application Builder, and then create an alert for the Web element. You can enable alerts through the Application Builder Save window, or on the Application properties window in the Web Studio. Selecting the Alert option enables alerts for the application. Tasks include:

StepsCreating an alert for e-mail delivery

This section shows how to create a stock quote alert for e-mail delivery.

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

  2. Click the arrow to the right of Add, and select Web Element. You see the New Web Element window.

  3. Enter a URL to capture an application that contains tabular data, for example, http://finance.yahoo.com, and click Find.

  4. Locate the content you want to capture, and from the Format drop-down list, select Grid to display the data in grid format.

    Click Next.

  5. Select the presentation option, and click Next.

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

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

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

  9. The Configure Parameters window displays the element’s CGI parameters. See “CGI parameters” and “Using the database table adapter”. Click Next.

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

  11. Click Finish.The Application Builder window displays with the new application name.

  12. Click Save, and configure the application:

  13. Click Close to close Application Builder. The new Web element displays in the right pane.

  14. Deploy the application to the Portal Interface.

StepsCreating a rule from Portal Interface

This section shows how to create a rule for the alert. This rule triggers an alert whenever the Last Trade value for Microsoft’s stock exceeds a set threshold. Use Portal Interface to add a rule to the Web element you created in “Creating an e-mail alert using Mobile Web Studio and Portal Interface”.

  1. Log in to the Portal Interface.

  2. Create a page group, a page, and add the “Stocks” application.

  3. Click the Alert icon (!) on the application’s title bar. The Alert definition window displays.

    NoteThere are no default rules defined for an alert.

  4. In the Alert definition window, define two rules for the Web element:

    1. In Name, select Playback from the drop-down list.

    2. Leave Rule Data and Description blank.

    3. Under Rules, define the rule relationship by clicking “and” to indicate multiple conditions.

      You can also click “or” to indicate a choice between conditions.

    4. Define the condition for Select fields by clicking “label” to indicate field labels are used to meet the condition.

      Other condition options include “position” to indicate window position, or “xpath” to indicate the same condition from every record.

    5. For the first rule, use “Execute alert when” to define the condition that triggers the alert:

      Select “field 1” from the drop-down list.

      Select “contains” from the drop-down list.

      Enter MSFT (for Microsoft) in the value field, to establish a match for field 1.

      Click the plus sign ( + ) to add the “Execute agent when” rule. The new rule displays under Rules and Rules Summary.

    6. For the second rule:

      Select “field 3” from the drop-down list. Notice some of the other choices for establishing conditions that are available in the list.

      Select “is greater than” from the drop-down list.

      Enter 26 (to indicate a Last Trade stock price) in the value field, to establish a match for field 3.

      Click the plus sign ( + ) to add the “Execute agent when” rule. The new rule displays under Rules and Rules Summary.

  5. Click Done to save the Rule, and click OK in the confirmation window.

  6. Click Cancel to close the Alert window.





Copyright © 2005. Sybase Inc. All rights reserved. Creating the schedule (Portal Interface)

View this book as PDF