Conditional Subreport
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.
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.
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com