I have a repeating table with the following fields:
-
WBA
-
StartDate
-
EndDate
-
DateDiff
-
OPAmount
And a repeating table footer with the following field:
To calculate the DateDiff, I followed the steps here: http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/
The finalize rule is set on [DateDiff] field.
To calculate the OP Amount, I modified the 'finalize' rule adding the following action:
Now, I would like to sum the [OPAmount] column so I set the default value of [TotalOP] = sum(OPAmount). However, I got an error message about 'exceeding the maximum limit' so upon further research, I need to modifiy the 'finalize' rule to calculate my [TotalOP] field so I added:
The third action in the finalize rule does not sum up the [OPAmount] column. It only displays the OPAmount value on the *last* row. Is there a way to calculate the [TotalOP] each time a row is added? I also posted a question on Alec's site. But, I'm hoping I can get someone else to enlighten me about repeating tables and rules.
Thank you,