‎2013 Oct 22 1:38 PM
Hi All,
While printing commercial invoice using Adobe Form the subtotal should be printed at the end of every page. The current issue is blank space is appearing so how do overcome this issue. Please help.
Thanks.
‎2013 Oct 22 1:46 PM
Hi Chandra,
Try this code in your subtotal area.
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;
SuDEESH
‎2013 Oct 25 5:54 AM
‎2013 Nov 28 7:25 AM
Hi,
The Javascript is still not working. We are getting subtotal value as 0 on each page. We need to get correct subtotal value on each and every page.
Please guide me on how to get the exact subtotal value on every page. I need the exact Javascript regarding this.
Please help.
Thanks.