Class Name

atg.commerce.pricing.priceLists.ComplexPriceDroplet

Component(s)

/atg/commerce/pricing/priceLists/ComplexPriceDroplet
(ATG Business Commerce only)

The ComplexPriceDroplet servlet bean takes a complex price and returns the levels contained within it.

Input Parameters

complexPrice (Required)
The ID of the complex price.

Output Parameters

levelMinimums
The smallest quantity that applies to each level. This always begins with 1.

levelMaximums
The largest quantity that applies to each level. This is always 1 item shorter than levelMinimums since the last level has no maximum.

prices
The list of prices for each level. The last price in this array is always the defaultPrice.

numLevels
The length of the quantities and prices arrays.

Output Parameter

error
The parameter rendered if there is an error.

Open Parameter

output
The oparam rendered if the complex price is processed successfully.

Example

The following example shows the JSP code for the ComplexPriceDroplet:

<dsp:droplet name="ComplexPriceDroplet">
 <dsp:param param="complexPrice" name="complexPrice"/>
 <dsp:oparam name="output">
  <table border=1>
   <dsp:droplet name="For">
    <dsp:param param="numLevels" name="howMany"/>
    <dsp:param value="index" name="indexName"/>
    <dsp:oparam name="output">
        <tr>
      <td>
       <dsp:valueof param="leveMinimums[param:index]"/> -
       <dsp:valueof param="levelMaximums[param:index]">?</dsp:valueof>
      </td>
      <td>
        <dsp:valueof param="prices[param:index]"/>
      </td>
    </tr>
 </dsp:oparam>
</dsp:droplet>
 
loading table of contents...