Skip to Content
0
Former Member
Feb 03, 2009 at 04:33 AM

WD Application- Adobe Non interactive subtotal issue

17 Views

Hi,

I am trying to subtotal a column in my table.I followed one of sap website tutorials.PRICE is myfield .For my subtotal text field this is the script.

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;

after this instead of displaying total value this is again display my first row value in subtotal box

Any thing wrong with the code?

Rgds

Vara