ppVariable OnCalc timing
Hello,
I'm trying to calculate a variable on the summary band that depends on the
values of two dbcalcs on the summary band.
When OnCalc is firing I see the values of the dbcalcs is always 0. It seems
that the dbcalcs are not yet assigned values when onclac is fired.
Is it guarantied that when oncalc is fired all other non variable components
on the same band are assigned their values?
TIA
I'm trying to calculate a variable on the summary band that depends on the
values of two dbcalcs on the summary band.
When OnCalc is firing I see the values of the dbcalcs is always 0. It seems
that the dbcalcs are not yet assigned values when onclac is fired.
Is it guarantied that when oncalc is fired all other non variable components
on the same band are assigned their values?
TIA
This discussion has been closed.
Comments
I would recommend replacing the DBCalcs with TppVariables and calculating
their values manually. This way you can use the CalcOrder of the
TppVariable component and be sure the two values have been calcuated before
trying to make the third calculation.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Can I assume then, that when OnCalc is called dbcalcs are not guarantied to
have a value?
Israel
Yes, I believe the OnCalc event for a TppVariable is fired before DBCalc
values are generated. To be sure you can try tracing these events or using
an event tracker such as the one used in the main report demo located in the
\RBuilder\Demos\1. Reports\... directory.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com