List: WORepetition {
        list = prices;
        item = aPrice;
}

BigDecimal runningTotal;

public BigDecimal runningTotal() {
        if (list.objectAtIndex(0) == aPrice) {
                runningTotal = aPrice;
        } else {
                runningTotal = runningTotal.add(aPrice);
        }

        return runningTotal;
}


Chuck
                

On Jul 30, 2007, at 9:59 AM, Daniel Brajkovic wrote:

Does anyone know of a way I can have a running total in WO repetition? Maybe in Javascript? Because I'd want it to be pretty dynamic. Change a column 2 value and all the column 3 values would change appropriately. For the life of me i just can't figure out a way.


For Example

Data1 $12.00
Data2 $14.00
Data3 $20.00

A new 3rd column would read:

Data1 $12.00 $12.00
Data2 $14.00 $26.00
Data3 $20.00 $46.00
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to