Keeptogether region calculates variable on calc twice
I have a report with master data and a detail subreport. In the
detail band of that subreport I have a varialble.oncalc event
that has to accumulate and hence must only fire once.
I now need to keep that mast and detail together - so I put a
region on the master detail band and set keeptogether. However
now, when it has to throw a page to "keeptogether" it does my
subreport.detail.variable.oncalc twice and messes up
accumulation.
A common problem I know of finding an event that really fires
just once, a variable oncalc does - usually.
Can I keeptogether the master and detail without this problem?
detail band of that subreport I have a varialble.oncalc event
that has to accumulate and hence must only fire once.
I now need to keep that mast and detail together - so I put a
region on the master detail band and set keeptogether. However
now, when it has to throw a page to "keeptogether" it does my
subreport.detail.variable.oncalc twice and messes up
accumulation.
A common problem I know of finding an event that really fires
just once, a variable oncalc does - usually.
Can I keeptogether the master and detail without this problem?
This discussion has been closed.
Comments
store the value in the variable's value parameter in the OnCalc, then it
will be automatically restored when KeepTogether happens so that the second
time the OnCalc fires, it will calculate based on if the previous OnCalc
didn't take place.
Are you using RB 7.02 for this report?
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
fire its oncalc - the oncalc programatically accumulates many non-report
variables according certain criteria.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com