cancel
Showing results for 
Search instead for 
Did you mean: 

Subtotal Adobe forms wrong

Freddy24
Newcomer
0 Kudos

Hi,
I've been struggling with the subtotal in Adobe Form for a while now. I have finally created the output. But the values in the subtotal are completely wrong. On the first page (17 items a 545€) the subtotal is 21.255,00. On the 2nd page it is 22,345.00 and on the 3rd page only 2,180.00. I have no idea what is wrong here. The coding I am using has been given in many examples and seems to work there:

data.PaymentAdvice.Main.ITEM_TABLE.ZWISUM.GES_BRUTTO::calculate - (JavaScript, client)

var fields = xfa.layout.pageContent(xfa.layout.page(this), "field", 0);
var total = 0;

for (var i=0; i <= fields.length-1; i++)
{
if (fields.item(i).name == "SUB_BRUTTO")
{
total = total + fields.item(i).rawValue;
}
}

this.rawValue = total;

I would be very grateful if anyone here has any ideas. Or an example where the subtotal works.

Regards
Freddy

 

Accepted Solutions (0)

Answers (0)