Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe forms Subtotal Issue

Former Member
0 Kudos
403

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.

3 REPLIES 3

Former Member
0 Kudos
95

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

Former Member
0 Kudos
95

Hi

Please follow this link, This might be helpful.

http://scn.sap.com/thread/2041995

Regards,

Anoop

0 Kudos
95

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.