Emiel
May 13, 2026, 6:58pm
1
How can I assign the sum of all NettPrice values retrieved in the repeat loop to the TotalNettPrices value after/outside the repeat loop:
This doesn’t work:
This gets the value of the first repeat iteration:
I need to total sum of NettPrices of all iterations however, but can’t find out the expression to achieve that.
Thanks for any help in advance.
Simply select the repeat, click the formatter button, select sum and select what you want to sum. It will generate the correct expression.
Emiel
May 13, 2026, 7:30pm
3
That works, thanks!! Results in this expression:
ProductData.sum('NettPrice')
I also want the sum of NettPrice*Quantity, but the same method results in this expression which doesn’t work:
ProductData.sum('NettPrice*Quantity')
Any idea what’s the reason behind that?
Are there any errors in the browser console?
Emiel
May 13, 2026, 8:08pm
5
No, no errors in the console unfortunately.
ProductData.sum('NettPrice') and ProductData.sum('Quantity') both show the correct sum values. The product of both ProductData.sum('NettPrice*Quantity') however doensn’t…
Also tried numeric casting btw, which didn’t make a difference:
ProductData.sum('NettPrice.toNumber()*Quantity.toNumber()')