When - if at all - do JITPipelines get closed?
Hi there,
I have the feeling that pipelines aren't automatically closed.
I have this report with 5 detail rows, when I preview it and
close it, the JIT pipeline doesn't get closed. Now, if I run
the same report again, but with a different (larger) number
of detail rows, it only displays 5. Any idea?
--
With regards,
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com
I have the feeling that pipelines aren't automatically closed.
I have this report with 5 detail rows, when I preview it and
close it, the JIT pipeline doesn't get closed. Now, if I run
the same report again, but with a different (larger) number
of detail rows, it only displays 5. Any idea?
--
With regards,
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com
This discussion has been closed.
Comments
Every DataPipeline (including the JITPipeline) is closed when the Report
Engine is freed. You will need to update the TppJITPipeline.RecordCount to
display the correct number of records when using a larger number of detail
rows.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
And when is that? I'm using template files - Template.Load etc, then .Print.
Or does this only happen when the TppReport component gets free-ed?
The RecordCount is set after opening the jit pipeline - but because it doesn't
get closed, it doesn't get updated.
--
With regards,
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com
I've found the CloseDataPipelines method at the TppReport component - that
fixes my issues.
This method isn't documented in the Help file - that's why I didn't find it
before.
--
With regards,
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com