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

Adding a column in a dynamic form

Dripto
Registered: Jun 20 2007
Posts: 47

How do I go about adding the contents of a column in a dynamic form where I don't know how many rows will be created by the user.

My scenario includes a table with the following column headers: Description, Quantity, Unit Price and and Total Price where Total Price = Quantity * Unit Price. So I want to sum the contents of the Total Price column. How do I go about doing that?

Thanks in advance.

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Dripto,

Have you watched the on demand e-seminars here at AUC on LiveCycle Designer forms? I believe both Angie Akomotos "Advanced Forms using LiveCycle Designer" and Thom Parker's "Extending LiveCycle Forms with JavaScript and FormCalc" show how to add totals in an order form as well as other important considerations for developing LiveCycle forms- both are well worth the time invested in learning.

Pdfscripting.com also has a series of training videos on scripting in LiveCycle Designer as well as sample forms with code- it is a paid subscription site.

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
Dripto
Registered: Jun 20 2007
Posts: 47
Hi Dimitri, I looked for the e-seminars and found both Angie and Thom's. However, they weren't very helpful. I was hoping somebody would have a script for it.

Besides my problem is slightly more complex. When I build a form and insert it into our application, it scans the form for a particular subform called “rfqDetail” and multiplies it n number of times where n is determined by the user. Now this rfqDetail subform has a numeric field called quotePrice in it which is thus multiplied n number of times as well. My question is how do I create a script that will go down the entire document and sum all the quotePrice values regardless of what the value of n is.

I hope I was clear if not please let me know.