Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

addInstance and calculating


Level 3


I use "musTable._row.addInstance(1);" to dupplicate this row, in this row à have à texte field called "price".

I want to calculate the "somme" of all the prices.

Can you help me

1 Reply


Level 10


Where the rows have the same name (most likely where it is a repeating row), then it is straight forward in FormCalc:

Here is a sample: https://acrobat.com/#d=RZ1lzX23*u7L4N9rtWCYPQ

If you look in the calculate event of the Total field:

$ = Sum(Table1.Row1[*].total[*])

Hope that helps,