These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Calculate the sum of fields nested inside a repeating subform

NStonerook
Registered: Feb 15 2011
Posts: 11

I am trying to add up the sum of a (potentially) repeating subform in LiveCycle Designer. My javasript is as follows:
 
form1.P1.Desig.Remain::calculate - (JavaScript, client)
 
var fields = xfa.resolveNodes("desInfo[*].AAmount");
var total = 0;
for (var i=0; i <= fields.length-1; i++) {
total = total + fields.item(i).rawValue;
}
this.rawValue = total;
 
***desInfo = name of subform
***AAMount = number I want totalled
 
If anyone could help me with this I would greatly appreciate it
 
Nick

My Product Information:
LiveCycle Designer, Windows
NStonerook
Registered: Feb 15 2011
Posts: 11
My problem is the displaying text box stays at "$0.00" without updating...