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

detect changes on OnCalc Value

edited March 2003 in RAP
i had create a report with 2 main report that contains multiple subreport
inside.
At the same time i use the OnCalc value to get the Sum Amount from some
subreports where these subreports are located on one main report ....
the things is when i use this method in main report1 where it contain main
report 2 ( as subreport ) and main report 2 contains subreports ..the figure
start change while i view the report ..... i mean i would get the correct
value if i navigate the report at least twice ....
eg i have 4 pages of report .... i need to navigate page 1 to 4 then
navigate back to get the real value .....
any setting i might gone wrong ??

TIA

Comments

  • edited March 2003
    The calc components in the subreport are reset when the subreport finished
    printing for one master record. What you have to do is hook up the OnCalc in
    the subreport to update a VariableN.Value in the main report (which doesn't
    have an OnCalc assign). Essentially, use the detail subreport
    Variable.OnCalc timing to calcuate a value in the main report. This is the
    way to update values which are totaled across subreports. Here is an example
    that shows a running total for all detail subreports.

    http://www.digital-metaphors.com/tips/MDRapRunningTotal.zip

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.