on 07-28-2011 8:32 AM
Hi,
Requirement: Tables in my forms are dynam,ic, like it can range from T1,T2... Tn determined at runtime.
I have a column F1 in all these tables.
I want to sum up this columns values and print only once the sum at the end of page.
i know to sum up values of a column of 1 table only but how do i get sum of all dynamic tables columns.
is it possible using Formcalc or Jscript?
ags.
var fields = xfa.layout.pageContent(0 , "field", 0);
var total = 0;
for (var i=0; i <= fields.length-1; i++) {
if (fields.item(i).name == "NumericField1") {
total = total + fields.item(i).rawValue;
}
}
this.rawValue = total;
This is a javascript code from adobe help. Here it depends whether all the tables have same column name.
Thanks,
Aravind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.