Report parameters in a subreport
Hi there,
Is there a way to get access to the main report parameters from a subreport
using RAP?
--
With regards,
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com
Is there a way to get access to the main report parameters from a subreport
using RAP?
--
With regards,
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com
This discussion has been closed.
Comments
It is possible to gain access to variables in the main report from a
subreport in RAP using RAP global declarations. These can be accessed and
created by right clicking inside the box in the upper left corner of the
'Calc' tab in the ReportDesigner and selecting 'Module'. From here, you can
create a global variable and set it equal to any variable in the main report
you like. Then when inside a subreport, you will have access to the global
variables you've created. Follow the link below for a quick example of how
you might use this capability.
http://www.digital-metaphors.com/tips/RAPGrandTotalInHeader.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks! This works great.
Would, in a future version, this be possible as well:
Report.MainReport.Parameters['...']?
--
With regards,
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com