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

Adding/calculating decimal sections

Formfingers
Registered: Feb 7 2007
Posts: 90
Answered

I'm needing to auto-calculate some rows in my table. I have one row, set to a minimum count of 3. It is set to add and delete rows as well.

Rows need to number as follows: 1.1, 1.2, 1.3, etc.

My script currently reads:

this.rawValue = (parent.parent.index) + 1 + .1;

Obviously, I'm missing something that is keeping it from calculating the second portion of my number (after the "point").

Any tips??

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Are arithmetically adding the values or concatenating the text strings?

George Kaiser

Formfingers
Registered: Feb 7 2007
Posts: 90
I've found the solution - hope it also works for those of you needing it too.

Below is my "new" script - be sure to edit out the index ("Row3") name to match yours...

this.rawValue = (parent.parent.index) + 1 +((Row3.index+1)/10);