Avatar

Level 5

If you use this script

($ = Sum(amount[*]))

in the calculate-event the calculate always recalculate if one of the parameter in the SUM function is changing his value.

xfa.resolveNodes( "master.Table3.Row1[*].iznos"); --> The [] aren't NO a sign for an array. This square brackets are only from the instances. But it's ok you used it as a name of the varibale.

I don't use execCalculate(); because this is not so good for the performance in my opinion. Normally everything is working fine with the calculate.event.

Let me see the next days. I will take a look to your pdf when I have more time.

Kind regards

Mandy

**********

PS:

In the calculate-event (using Formcalc) of the Footer from Komada use

$ = Sum(Row1[*].komada)

In the calculate-event (using Formcalc) of the Footer from m2 use

$ = Sum(Row1[*].m2)

In the calculate-event (using Formcalc) of the Footer from iznos use

$ = Sum(Row1[*].iznos)

This all three works correct!

The problem in your script is-..there are a few mistakes...you use in Formcalc "this". "This" you could only use by Javascript. The same in Formcalc is "$"...

You used too much brackets, for example here..you don't neefd TWO brackets!

else if ((this.resolveNode("$").rawValue !== null || this.resolveNode("$").rawValue !== "")) {