Skip to Content
0
Former Member
Jul 05, 2011 at 01:21 PM

subtotals in adobe forms

832 Views

Hi,

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.

Pls help.

Thanks and regards,

Raka.