Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Velocity Expression $oldValues

    SmartClient Version: SC_SNAPSHOT-2011-02-19/PowerEdition Deployment (built 2011-02-19)
    Browser: Firefox 3.5.3

    With sparseUpdates="true", we would like to know if there is a velocity expression call equivalent to $values but old values, ie: $oldValues? The purpose would be for any time there is a need to access old values in a ds.xml.

    Here's a simple example of what I'm talking about.

    Code:
    <field name="IQTY" title="Qty Ordered" type="integer" length="9" menuItem="Quantity>" canEdit="true">
        <validators>
            <validator type="integerRange" min="#if($oldValues.ITQR) $oldValues.ITQR #else 0" max="999999999" 
                errorMessage="Order quantity cannot go below received quantity" />
        </validators>
    </field>
Working...
X