Siebel Advisor Administration Guide > Working with Deployed Advisor Applications > Calling Your Advisor Application from Another Siebel Application >

Passing in Parameters When Invoking the ShowCDA Method


In Siebel Tools, when you create an applet, you can specify additional information be passed along to the ShowCDA method when a button is clicked, including:

  • Project, Pageset, and Dynamic Defaults
  • Configuration Properties

When you pass these parameters into the applet's user properties, these parameters apply to all buttons defined in that applet. If you want to give a button different parameters, you need to do so in a different applet.

Passing in Project, Pageset, and Dynamic Default Information

To pass project, pageset, and dynamic default information to the ShowCDA function through Siebel Tools, use the syntax in the following examples to create entries in the applet's user properties. This allows you to specify what pageset and dynamic defaults are displayed when a user clicks a button.

Example

This example assumes you want to create three buttons that each have different projects, pagesets, and dynamic defaults.

To create three buttons that display different applets

  1. In Siebel Tools, create three buttons in the applets.

    For example:

    Name
    MethodInvoke

    Button1

    ShowCDA

    Button2

    ShowCDA1

    Button3

    ShowCDA2

  2. Create an applet user property for each method.

    Button 1

    Name
    Value

    Method|ShowCDA|Parameter 1

    QuoteId|Field|Id

    Method|ShowCDA|Parameter 2

    Projectlocation|Value|project1

    Method|ShowCDA|Parameter 3

    Pageset|Value|pageset1

    Method|ShowCDA|Parameter 4

    Dyndefs|Value|dyndefs1

    Method|ShowCDA|Parameter 5

    End

    Button 2

    Name
    Value

    Method|ShowCDA1|Parameter 1

    QuoteId|Field|Id

    Method|ShowCDA1|Parameter 2

    Projectlocation|Value|project2

    Method|ShowCDA1|Parameter 3

    Pageset|Value|pageset2

    Method|ShowCDA1|Parameter 4

    Dyndefs|Value|dyndefs2

    Method|ShowCDA1|Parameter 5

    End

    Button 3

    Name
    Value

    Method|ShowCDA2|Parameter 1

    QuoteId|Field|Id

    Method|ShowCDA2|Parameter 2

    Projectlocation|Value|project3

    Method|ShowCDA2|Parameter 3

    Pageset|Value|pageset3

    Method|ShowCDA2|Parameter 4

    Dyndefs|Value|dyndefs3

    Method|ShowCDA2|Parameter 5

    End

    In this example, project1, project2, and project3 are the values passed to Advisor. The syntax is:

    Method|ShowCDAxx|Parameter x = parameterName|ParameterType|ParameterValue

    ParameterType can be either Field or Value. If parameterType is Field, ParameterValue is the field name, and the parameter value is pulled from that field in the business component.

About Passing in Values for Configuration Variables

While you can set variables in the application CFG file as explained in the File Reference chapter of Siebel Advisor API Reference, you can also set and pass these values in Siebel Tools. This method allows you to customize the runtime behavior for each applet. For example, you can specify that one applet navigates to a product detail view named Product List view and that another applet navigates to a different view named Product Detail View - Feature View (eSales).

To pass CFG properties to the ShowCDA function through Siebel Tools, use the syntax in Table 4 to create entries in the applet's user properties. Create buttons and entries in the applet's user properties just as you did in the previous example.

Table 4. Example Syntax
Name
Value

Method|ShowCDA|Parameter 1

ISSCDAHeaderBusObjName|Value|Quote

Method|ShowCDA|Parameter 2

ISSCDAHeaderBusCompName|Value|Quote

Method|ShowCDA|Parameter 3

ISSCDAIntegrationObjName|Value|Quote

Method|ShowCDA|Parameter 4

End

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