Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

ppVariable OnCalc timing

edited February 2006 in General
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

Comments

  • edited February 2006
    Hi Israel,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2006
    Thanks Nico,
    Can I assume then, that when OnCalc is called dbcalcs are not guarantied to
    have a value?

    Israel


  • edited February 2006
    Hi 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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.