Siebel Interactive Selling Transact Server Interface Reference > ShoppingCartBean API >

General Functions


Function
Description
Syntax
Example
getCartOnLoad
Call this function in the onLoad handler of the BODY tag in the ShoppingCart template.
public String getCartOnLoad()
<body bgcolor=#FFFFFF onLoad="<%= bean.getCartOnLoad() %>">>
getQuote
Retrieve all the information from the database about the quote currently being displayed to the user through the shopping cart interface.
public void getQuote()
<%= bean.getQuote() %>
setSession
Pass the JSP session object to the bean.
public void setSession(HttpSession session)
<%= bean.setSession(session) %>
setRequest
Pass the JSP request object to the bean.
public void setRequest(HttpServlet
Request request)
<%= bean.setRequest(request) %>
finishUp
After all the quote line items and parts have been iterated through, a call must be made to the ShoppingCartBean API function finishUp(). This function writes any changes the user has made to the database.
public void finishUp()
<%= bean. finishUp () %>
getQuoteErrorCondition
Returns true if an error has happened during the display or update of the shopping cart information.
public boolean getQuoteErrorCondition()
<% if (bean.getQuoteErrorCondition()) {
%>
<script language="JavaScript">
ServerError();
</script>
<% }%>
getQuoteChangeError
Returns true if the cart could not be updated because of a concurrency error (another user made changes to the quote before update was clicked). The current quote information is displayed in the shopping cart, including the other user's changes. Further changes may be reapplied and update may be clicked again.
public boolean getQuoteChangeError()
<% if (bean.getQuoteChangeError())
{ %>
<script language="JavaScript">
...
</script>
<% } %>
getQuoteDeletedError
Returns true if the cart is deleted by another user (the creator is the only user allowed to delete the quote).
public boolean getQuoteDeletedError()
<% if (bean.getQuoteDeletedError())
{ %>
<script language="JavaScript">
QuoteDeletedError();
</script>
<% } %>
getQuoteFormAction
The action parameter of the cart_form HTML form in the ShoppingCart.jsp template should get its value from a call to the getQuoteFormAction() method.
public String getQuoteFormAction()
<form name="cart_form" action="<%= bean.getQuoteFormAction() %>" method=POST>


 Siebel Interactive Selling Transact Server Interface Reference 
 Published: 18 April 2003