Quoting operations are also initiated with the /atg/commerce/order/purchase/QuoteFormHandler. By default, the form handler contains the following properties:

Property

Description

orderId

The ID of the order used in the form handler operation.

note

A note from the customer that accompanies the quote request.

quoteSuccessURL

The page that the customer is directed to if the form handler successfully submits the order for a quote.

quoteErrorURL

The page that the customer is directed to if an error occurs during quote submission.

requoteSuccessURL

The page that the customer is directed to if the form handler successfully resubmits the order for a quote.

requoteErrorURL

The page that the customer is directed to if an error occurs during the quote resubmission.

acceptQuoteSuccessURL

The page that the customer is directed to if the form handler successfully submits the quoted order.

acceptQuoteErrorURL

The page that the customer is directed to if there is an error while completing the checkout of a quoted order.

rejectQuoteSuccessURL

The page that the customer is directed to if the quote rejection request is successful.

rejectQuoteErrorURL

The page that the customer is directed to if there is an error during the rejection of a quote.

completeQuoteSuccessURL

The page that the customer is directed to when the quote is completed successfully.

completeQuoteErrorURL

The page that the customer is directed to if there is an error when completing the quote.

completeQuoteParameters

The map parameters used for the completion of a quote.

The QuoteFormHandler, which extends the PurchasProcessFormHandler, has a number of handle methods. These handle methods have corresponding premethodName, postmethodName, and methodName methods. For example, the handleRequestQuote method has corresponding preRequestQuote, postRequestQuote and requestQuote methods. A handle method calls its premethodName method before executing its methodName method. Likewise, it calls its postmethodName method after executing its methodName method. The pre and post methods provide an easy way to extend the functionality of the handle methods.

The QuoteFormHandler also has a set of successURL and errorURL properties that map to its handle methods. For example, handleRejectQuote has corresponding rejectQuoteSuccessURL and rejectQuoteErrorURL properties. After a handle method executes, you can use these properties to redirect the customer to pages other than those specified by the form’s action attribute. The redirected page’s content depends on the type of operation and whether the operation succeeded or not. For example, if an attempt to request a quote fails, you could redirect the customer to a page explaining what caused the failure.

The value of the redirect properties is a URL relative to the action page of the form. You can either specify the values of these URL properties in the properties of the form handler or you can set them in the JSP itself using a hidden tag attribute.

The QuoteFormHandler uses the following handle methods:

For detailed information on working with form handlers, refer to the Page Developer's Guide. For information on working with the OrderManager, refer to the Updating an Order with the OrderManager section.


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices