Siebel Interactive Designer API Reference > Siebel-Specific Functions >

SendSelectionInformationToServer


Usage

Use the SendSelectionInformationToServer function to post specified data to a business service and method.

NOTE:  To use this function, you need to write a business service and a method on that service.

You can use this function to create a variety of integration points with other applications as follows:

  • Create a new opportunity in Siebel Sales as a result of a web advisor session.
  • Store results of a session to a Business Component other than Quotes.
  • Call a string of Dynamic Defaults from a Business Component and open a pageset that displays them.
  • Pass an optional field promoCode (promotional code) to the method so that it will specially price the information based on that code.
  • Use a CDA Service Broker in the ISSCDA RT UI Service to:
    • Call another business service.
    • Accept information from a called business service.
    • Return a confirmation response to the client.
Syntax

SendSelectionInformationToServer(service, method, prodStr, enableLinkback, optArgs)

Argument
Description

service

Name of the Business Service to be executed.

method

Method to be used on the business service.

prodStr

Product string describing the product. Use null, without quotes around it, to specify that no product string should be sent. Use "auto" to automatically extract the product string. prodStr is added automatically when you choose to use it in the other arguments. Do not set it manually.

enableLinkback

Boolean value specifying whether to build a linkback string used for restoring state. If "true," constructs and passes the appropriate linkback string. If "false," takes no action. The linkback string gets added automatically when you choose to use it in the other arguments. It should not be set manually.

optArgs

Object including at least the following special fields: prodStr and linkBackStr. Any additional data should be included as fields in this object as a string or number. This data will be associated with the field name when sent to the method.

Example

To send the model and year of your car along with product and state information, call the function as follows:

var optArgs = new Object();
optArgs["carModel"] = "Sedan";
optArgs["Year"] = 99;
ISS.SendSelectionInformationToServer("myService", "myMethod", "auto", true, optArgs);

This call will automatically extract product information from the data model since auto is true. It will also create a linkback string for the current state of the pageset. The linkback string can then be used to open the pageset in this state.

Siebel Interactive Designer API Reference