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

Problem with Tpp.Variable OnCalc/Traversal

edited August 2008 in General
Hi!

I?m currently using RBuilder 9.3 EnterpriseEdition. Today I was updating
to the TrialVersion 10.9 because we are thinking about an update.
Therefore I thought it might be a good idea to make some tests on our
existing reports before buying the update.

At first view everything worked fine but then I recognized that some of
our group summaries were too high... After some 'debuging' I found out the
following Problem:

In some cases our group summaries are calculated manually via
Tpp.Variables that have the timing veTraversal. For each page of our
report the OnCalc-Event of the TppVariable seems to be fired twice for the
first detail-value.


Although trying everything I could think of I could not solve the Problem.
After browsing for a solution in the newsgroups I found the following case
that seems to be almost the same:

http://delphi.newswhat.com/geoxml/forumhistorythread?groupname=digital-metaphors.public.reportbuilder.subreports&messageid=ee0lk3phe8b5plsd2n8n0916rcejku6nf9@4ax.com

Unfortunately the thread ends without any conclusion...

Any ideas?

Best Regards
Ralf Appenzeller



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited August 2008
    Hi Ralf,

    You need to be sure your variable(s) are set to a value type other than
    String if you would like the OnCalc event to fire only once per traversal.
    We made some changes with regards to string variables in the latest versions
    to make these type of variables more robust however when making numerical
    calculations, the type needs to be changed.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2008
    Hi Nico!

    Well your solution seems a bit odd to me, but hey: It works!!!

    Thank you! Now everything works fine even with the actual version of your
    rBuilder. I hope I can convince my boss to upgrade to version 10.9 in the
    following days.

    I really have to compliment DigitalMetaphors on its support-team. Unitl
    now you always had a solution to my problems!

    Best Regards

    Ralf



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.