Get subreport variable calc outside subreport to group footer
Sorry to ask yet another question....
I have a master/details report with groups on the master (2 key values) and
a group on the details. Within the details subreport I have a variable that
calculates the difference between two data fields. I want to show the sum of
these differences outside the subreport in one of the group footers of the
master.
I just don't seem to be able to get the value outside the subreport. I have
read the tips on calculations, but all my efforts in using another variable
have failed. What settings do I need to use to get this to work?
TIA
Dave
I have a master/details report with groups on the master (2 key values) and
a group on the details. Within the details subreport I have a variable that
calculates the difference between two data fields. I want to show the sum of
these differences outside the subreport in one of the group footers of the
master.
I just don't seem to be able to get the value outside the subreport. I have
read the tips on calculations, but all my efforts in using another variable
have failed. What settings do I need to use to get this to work?
TIA
Dave
This discussion has been closed.
Comments
Are you using RAP or are you making this calculation in Delphi code? If you
are using Delphi, you can simply use the OnCalc event of the TppVariable in
the subreport to update the Variable you have in your main report.
If you are using RAP, you will need to declair a global TppVariable in the
Module section and set it equal to the TppVariable you have in your main
report. Then you will have access to the global variable inside the
subreport. See the example below for a better idea on how to do this.
http://www.digital-metaphors.com/tips/TotalsFromSubreportWithRAP.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
"Nico Cizik (Digital Metaphors)" wrote
Of course, so simple! Thanks.
Dave