Siebel SmartScript Administration Guide > Verifying, Testing, and Invoking SmartScripts > About Invoking SmartScripts >

Invoking SmartScripts Using a Hyperlink


This topic describes how to invoke a SmartScript from a hyperlink. You can do this from an email or from a Web page, generated by an application, such as Siebel eService. The following example demonstrates how to invoke a SmartScript from a custom view in the Siebel eService application. To use this functionality, you must modify objects in Siebel Tools.

To invoke a SmartScript from a custom view in Siebel eService

  1. Log in to Siebel Tools.
  2. Query for the applet from which the SmartScript is invoked. In the example, this applet is eService Account Quick Links Applet.
  3. Lock the project that contains this applet.
  4. Create two new controls for the eService Account Quick Links Applet. In the example, these controls are LinkSmartScript and LabelSmartScript. The following table describes the property values for the LinkSmartScript control.

    NOTE:  In the following tables, X indicates that you select a check box.

    Property
    Value

    Name

    LinkSmartScript

    Caption

    SmartScript

    HTML Display Mode

    EncodeData

    HTML Row Sensitive

    X

    HTML Type

    Text

    Method Invoked

    GotoView

    Sort

    X

    Text Alignment

    Left

    Visible

    X

    Visible - Language Override

    Y

    The following table describes the property values for the LabelSmartScript control.

    Property
    Value

    Name

    LabelSmartScript

    Caption

    Create a SmartScript

    HTML Display Mode

    EncodeData

    HTML Row Sensitive

    X

    HTML Type

    Label

    Sort

    X

    Text Alignment

    Left

    Visible

    X

    Visible - Language Override

    Y

  5. Invoke the Edit Web Layout command for the eService Account Quick Links Applet and add the LinkSmartScript and LabelSmartScript controls to the applet.
  6. For the LinkSmartScript control, add a Control User Prop with the values listed in the following table.
    Property
    Value

    Name

    View

    Value

    myExample SmartScript Player View

    NOTE:  You create this view in Step 7.

  7. Navigate to the View object, and select the Smart Script Player View (eApps) view object. Lock the project, create a new view by copying this object, and rename it. This is the view that you specify for Value in the Control User Prop created in Step 6. The following table specifies the values to give to this newly created view object.
    Property
    Value

    Name

    myExample SmartScript Player View

    Project

    eSmartScript

    Business Object

    Smart Script Player

  8. Navigate to the Screen objects, and select the Smart Script Player View (eApps) screen object.
  9. Add the view that you created in Step 7 to the list of screen views for the Smart Script Player View (eApps) screen object.

    CAUTION:  Select a sequence number that does not conflict with existing sequence numbers.

  10. Navigate to the Application objects, select the Siebel eService application, then navigate to the Screen Menu Item list, and make sure that the Smart Script Player View (eApps) screen appears in this list.
  11. Compile the locked projects.
  12. Log in to your Siebel application, and navigate to the Administration - Application screen > Views view.
  13. Create a new record in the Views list, add the view that you created in Step 7, and select the Default Local Access check box.
  14. In the Responsibilities list, add the responsibilities that you want to allow access this view.
  15. Navigate to the Administration - SmartScript screen > Views view, select the view you created in Step 7, and in the Auto SmartScript field select the SmartScript that you want to invoke.
  16. Log out from your Siebel application.
  17. Restart your Siebel Server.

    After the Siebel Server restarts, you can log in to Siebel eService where a hyperlink entitled, Create a SmartScript appears. Clicking this hyperlink invokes the SmartScript that you specified in Step 15.

Siebel SmartScript Administration Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.