Avatar

Level 10

Hi,

So in your example you want to sum up both columns?

In that case I would change the line " sum += itemRow.all.item(i).amount.rawValue;"

to

sum += itemRow.all.item(i).amount.rawValue + itemRow.all.item(i).othercolumn.rawValue;

You will have to change "othercolumn" to suit the name of your column.

Regards

Bruce