Current Position:Home > I am trying to create a PDF document that calculates Gains and Losses in Mutual Funds. The calculation scripts are repetitive from line to line. The scripts work well until I reach the line 32. Script stops calculating...

I am trying to create a PDF document that calculates Gains and Losses in Mutual Funds. The calculation scripts are repetitive from line to line. The scripts work well until I reach the line 32. Script stops calculating...

Update:10-11Source: network consolidation
Advertisement
I am trying to create a PDF document that calculates Gains and Losses in Mutual Funds. The calculation scripts are repetitive from line to line. The scripts work well until I reach the line 32. Although I am using the same script as the fields above in the columm, the script eventually stops calculating and I can't figure out why. Is there a limit of how many calculation scripts you can enter? I will attempt to attach my pdf as soon as I figure out how. Thanks.

The Best Answer

Advertisement
For e31 :
var e30 = +getField("e30").value ;
var c31 = +getField("c31").value ;
if ( (e30 !== 0) && (c31 !== 0) ) event.value = e30 + c31 ;
else event.value = "";
for e32 :
var e31 = +getField("e31").value ;
var c32 = +getField("c32").value ;
if ( (e31 !== 0) && (c32 !== 0) ) event.value = e31 + c32 ;
else event.value = "";
for e33 :
var e32 = +getField("e32").value ;
var c33 = +getField("c33").value ;
if ( (e32 !== 0) && (c33 !== 0) ) event.value = e32 + c33 ;
else event.value = "";
Java console doesn't show any error... That's why I am wondering if it's not a limitation issue... or memory issue, because they are maybe too many rows or something....
The c value is not calculated.