Application Development and Automation 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: 
Read only

Adobe forms Subtotal Issue

Former Member
0 Likes
942

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
Read only

Former Member
0 Likes
634

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

Read only

Former Member
0 Likes
634

Hi

Please follow this link, This might be helpful.

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

Regards,

Anoop

Read only

0 Likes
634

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.