Hi,
Our software takes in an XDP form that has a subform called rfqDetail and generates a PDF with multiple instances of that subform (based on the user's requirements). The rfqDetail subform has a quotePrice field in it that contains a decimal value. The form also has rfqFooter subform which only appears once in the PDF.
What I have so far is a Calculate button in the rfqFooter subform and a totalPrice decimal field which will calculate the sum total of all the quotePrice fields in all the rfqDetail subforms once the user clicks the Calculate button.
My script so far is as follows:
for (var i = 0; i < rfqHeader._rfqDetail.count; i+){
xfa.resolveNode("rfqFooter.partsTotalA.rawValue") = xfa.resolveNode("rfqHeader.rfqDetail["+i+"]").volA.rawValue + xfa.resolveNode("rfqFooter.partsTotalA.rawValue") ;
}
Can anybody explain why this isn't working?
Thanks
You will need to modify the script for your needs like this (I didn't test it so far).
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs