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

Calculate Script needed

patra
Registered: Oct 19 2006
Posts: 270

How I can calculate(Sum) a column of 5 rows in a table create by Designer 8.0.
The 6th rows from the column is a numeric field named: Total

Thanks for your help

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can use FormCalc for this. It even has a "Sum" function. You can read more about it and download the FormCalc Reference here:

http://kb.adobe.com/selfservice/viewContent.do?externalId=330467&sliceId=2To add fields together, especially fields in a table, you'll need to use the SOM path, or hierarchy path to the field. Watch this video to learn about scripting in LiveCycle documents.

https://admin.adobe.acrobat.com/_a200985228/p87746471/

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script