Hello,
I've taught myself to create 33 PDF forms in Adobe Acrobat 8.2 LiveCycle Designer for my company. I can add simple totals across a table, but I'm having problems with the Grand Total field. In Excel I could complete this function in less than one minute, but for some reason I've been sent on a wild goosechase to calculate a simple Grand Total in Designer. I have almost no knowledge of FormCalc or fJavaScripting - the only scripting I know is from my experience with Excel.
This is what I've done (copy of form table attached):
Binding Names:
Qty Unit Price Total Price Calculation
--------------------------------------------------------------------------------------------------------
quantityA unitpriceA totalpriceA quantityA+unitpriceA (this works)
quantityB unitpriceB totalpriceB quantityB+unitpriceB (this works)
quantityC unitpriceC totalpriceC quantityC+unitpriceC (this works)
quantityD unitpriceD totalpriceD quantityD+unitpriceD (this works)
Grand Total Calculation: sum(totalpriceA+totalpriceB+totalpriceC+totalpriceD)
Error I receive:
Script failed (language is formcalc; context is xfa[0].form[0].form1[0].#subform[0].Table7[0].Row5[1].grandTotal[0]) script=sum(totalpriceA+totalpriceB+totalpriceC+totalpriceD)
Error: accessor ‘totalpriceA’ is unknown.
I've also tried copy & pasting this into the script editor, but it didn't work either:
<calculate>
<script contentType="application/x-javascript">this.rawValue = firstfield.rawValue + secondfield.rawValue;</script>
</calculate>
Help, this is all I need to do to complete this job! Thanks so much for your help!
Gia