on 02-03-2009 5:14 AM
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
Hi
In the below link for example application , used sum of a column all values in the form. Import to ALD and see the java script code.
http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/InteractiveExpenseReport.pdf
other alternative method is, by doing Loop through the table.
Regards
Malli.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.