Answered
Hello,
I used Thom Parker's scripting for Programming List and Combo fields in Acrobat and LiveCycle forms and had great success. I have now added a Grand Total field to sum all the values of each dynamic row. Here's my script for the grand total numeric field-calculate event-Javascript:
// Acquire all "Amount" Fields there are inside a subform named "OrderItems"
var flds = xfa.form.TopmostSubform.resolveNodes("$form..OrderItems[*].Total");
// Loop over list of fields and add up values
var sum = 0;
for(var i=0;i
for your grand total field, place the below script in "Calculate" Event of the Field with Language as "Formcalc"
Sum(detail[*].numAmount)
Note: replace the detail with your Table Row name and
numAmount with the amount field name in your table row.
Thanks,
Madhu.