Calculate page subtotals in repeating dynamic subform
hello,
i have repeating subform can span many pages, @ bottom of list have grand total.......thats great
i add subtotal each page of repeating subform. how can this?
i have following code grand total:
// acquire "amount" fields there inside subform
var
flds = xfa.form.form1.resolvenodes("$form.form1.table1_rows[*].tvos_t1");
// loop on list of fields , add values
var
sum = 0;
for
(var i=0;i<flds.length;i++)
{
// test fields value make sure number before
// including in sum
if(!isnan(flds.item(i).rawvalue))
sum
+= flds.item(i).rawvalue;
}
// ensure "sum" last value run in script
sum;
i guess need pagination settings well,
all hugely appreciated!
if post form have look.
paul
More discussions in LiveCycle Forms
adobe
Comments
Post a Comment