I have a form that has that has the capability to a row. I have a total field and I have a grand total field. How do I get the grand total field to calculate once rows are added to to the table? My total field is working just fine.
I looked at the purchase order example and the total field has the following (of course it doesn't work for me):
my numeric fieldname is TotalHr so I just replaced numAmount with TotalHr
calculate using FormCalc
// Verify at least one instance of the numAmount field exists.
if (exists(detail[0].numAmount) == 1) then
Sum(detail[*].numAmount)
endif
Views
Replies
Total Likes
Views
Replies
Total Likes
The code looks fine but you will have to cause the calculate event to fire again once the row is added. If you add the command:
xfa.form.recalculate(1);
to the end of the script that adds the row ...everything shoudl then work OK.
Paul
Views
Replies
Total Likes
Thank you!
It is on the way!
Views
Replies
Total Likes
Thanks!
Views
Replies
Total Likes
Views
Replies
Total Likes
Srini,
I cannot "Thank You enough!!!
I see now what I was doing wrong!
Views
Replies
Total Likes
Thanks for both of your help.
Views
Replies
Total Likes