Siebel Advisor API Reference > Siebel-Specific Functions for Siebel Advisor >
AddToSSCart
Usage
Use the AddToSSCart function to add the currently selected product to the order or quote. The product can be added without ending an application session. AddtoSSCart can be called from any frame within the application and can be executed anywhere a JavaScript function can be used. It is commonly called from the onClick event handler of a link, but can also be referred to from an image map, set as the SUBMIT method of an embedded frame, or called from another user-defined JavaScript function. Refer to the Referencing Other Siebel Data chapter in Siebel Advisor Administration Guide. Syntax
AddToSSCart(productDescriptionString, StayInAdvisor)
|
|
productDescriptionString |
Optional argument used as the description for the customizable product to be added. If productDescriptionString is not specified, the model and state are examined to automatically build a customizable product description before adding the product to, and displaying, the quote or order. You can define ProductDescriptionString in the following ways:
|
StayInAdvisor |
Optional argument. The possible values are true or false. If set to true, when a link is clicked, users will not leave the Advisor session. Instead, users will get a javascript pop-up message indicating success or failure of adding the product to the cart. If set to false, when a link is clicked, users go directly to the shopping cart. AddToSSCart can be called with no parameters, but in order to explicitly set the behavior of StayInAdvisor, you must have a value in the first parameter, productDescriptionString. |
Examples
ISS.AddToSSCart();
ISS.AddToSSCart(ISS.GetBusCompId("PROD.DESC"))
ISS.AddToSSCart("relationship=null&*prodID= XFS-628&*qty=1&*attributes={}&*children={}");
ISS.AddToSSCart(ISS.GetBusCompId("PROD.DESC", true));
ISS.AddToSSCart(ISS.GetResultsValue("CONSTRUCTED_PROD"));
ISS.AddToSSCart(ISS.GetBusCompId("STEREO.PART_DESC"), false);
ISS.AddToSSCart(ISS.GetBusCompId(null, true));
ISS.AddToSSCart(null, true);
|