cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe form

Former Member
0 Kudos

Hi all,

In Adobe form not interactive, I want printing an customer invoice with an array for item, it is OK

But I want printing a subtotal by page and I want report this subtotal on next page

I have defined a 'rangée de pied de page and I use function"sum(Section.Rangee0[*].NETWR)" in subtotal area, but I have total of all item amount

Whitch I must use for resolve this problem

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try with below sample code, it helps for your requirement

Below code for sub totals in adobe forms

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;

Below code totals in adobe forms

sum(Data.Table1.Group1.Row1[].PRICE[])

Thanks

Ramakrishna Pathi