Adding columns in a dynamic table
i have created table allows users add or delete rows needed. each row , column contains scripting automatically sum data entered table. works great except 1 thing - new rows added user aren't being calculated column totals. new rows calculate correctly row totals. did wrong here? i've attached table can see i've done.
i see 2 issues.
1. on calculations using [*] notation occurances of field. subform or rowname has occurance on not individual fields....so remove [*] c1, p1 etc... fields.
2. when add dynamic subform have fields created registered when calcualtion fires knows new fields there. on each addrow or remove button add line of code end of script:
xfa.form.recalculate(1)
hope helps
paul
More discussions in LiveCycle Forms
adobe
Comments
Post a Comment