Sorry for this question.Although this has been asked a lot of times,i am getting problems.
I want to print the subtotal for each page in adobe forms.I am getting the total at end of last page.
This is the code given in sdn and saptechnical.
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
var total = 0;
for (var i=0; i <= fields.length-1; i++)
if (fields.item(i).name == "PRICE")
total = total + fields.item(i).rawValue;
this.rawValue = total;
But it is not working for me.
Some have also asked to code in the program,but I have no idea about it.
Thanks and regards,