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

JIT Pipeline and Calc Tab

edited July 2011 in General
I have a report that uses a JIT pipeline and the JIT pipeline is a
combination of two other memory tables. For various reasons, I cannot
use one DBPipeline and merge the memory tables into one table at design
time which is why I am using the JIT pipeline.

However if I run a report that has various calculations using fields
from the JITPipeline, the report errors out because the fields do not
appear to be created until i preview the report. If the report does not
have anything on the calc tab it works ok. In other words, if I have
(for example) on the DetailBeforePrint event:

Variable2.Value := ppTextPipeline['Whatever'] * 2; // Syntax not
correct I know - just an example.

Then when previewing the report i get AVs. Without that there it works
ok. When First opening the report in the editor there do not appear to
be any fields in the pptextpipeline. Any ideas how to fix?

Comments

  • edited July 2011
    Hi Jeff,

    I'm a bit unclear about which components you are using. Are you using a
    JITPipeline or a TextPipeline?

    Either way, you will need to define the fields that will be accessed
    using the pipeline field editor.

    Once you try to access a field value (Pipeline['Whatever']),
    ReportBuilder makes a call to the JITPipeline.OnGetFieldValue event
    which you need to implement and have return the proper value.

    My first suggestion would be to get this all working in Delphi before
    moving some of your code to RAP. Also take a look at the JITPipeline
    examples located in the main reports demo.

    Best Regards,

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