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

Conditional Subreport

edited November 2006 in RAP
Hi,

I have 2 Subreports (pbChild) in de Detailband of my report,
Both are linked to the same Datapipeline.
When the recordcount of the dataset of that pipeline = 1,
I have to show the first subreport, else i have to show the
second subreport.
In normal situations i could just assign the OnPrint Event,
and set the subreport visible or not.
The problem however is that the report is loaded from
a template so i want to perform this operation in RAP.

Is it possible through RAP to get the recordcount from
The Datapipeline's dataset ?
I Already tried to EOF of the datapipeline, but it's never EOF.

Thanks in advance,

Marcel Brink
Xploration.

Comments

  • edited November 2006
    Hi Marcel,

    You will need to create a pass-thru function that checks the record count of
    your dataset before the report is generated. Examples of creating a RAP
    pass-thru function can be found in the RAP demo located in the
    \RBuilder\Demos\0. RAP\... directory.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.