Variable calc on traversal and reset on group start
Hi,
I just discovered the following:
I have a report with a group 'month'. A variable is put in the group footer
to count the records. It's calculated on traversal and is reset on
groupstart. The variable results are wrong in this case. It seems traversal
oncalc is calculated before the reset event fires. When I change the reset
timing to groupend, it works as expected.
Why is this and is there some list (wiki) about the order in which variable
events fire?
Tested with RB10.09 and RB11.02
Regards,
Jeroen R?ttink
I just discovered the following:
I have a report with a group 'month'. A variable is put in the group footer
to count the records. It's calculated on traversal and is reset on
groupstart. The variable results are wrong in this case. It seems traversal
oncalc is calculated before the reset event fires. When I change the reset
timing to groupend, it works as expected.
Why is this and is there some list (wiki) about the order in which variable
events fire?
Tested with RB10.09 and RB11.02
Regards,
Jeroen R?ttink
This discussion has been closed.
Comments
As a general rule of thumb, when a variable is printed at the end of a
group, reseting it at the group end would give the best chances of success.
Working with calculations across groups and subreports can be tricky due to
timing issues. This is why we give so many options .
Currently trial and error is our best recommendation however a rbWiki
article would be very helpful in these cases. I will see about writing one
as time allows. Thanks for the information.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com