on 04-06-2024 5:37 PM
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
User | Count |
---|---|
74 | |
8 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.