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

Report parameters in a subreport

edited August 2003 in General
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

Comments

  • edited August 2003
    Hi Martijn,

    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

    --
    Best Regards,

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


    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
This discussion has been closed.