Home Subreports

Second JITPipeline doesn't fire?

edited October 2006 in Subreports
I have two JITPipelines with separate GetFieldValue routines. Both are
sub reports on the same detail band but are not related. The second
GetFieldEvent doesn't get called when the report prints. Is there
anything I should be looking for? Thanks, Madt M.

Comments

  • edited October 2006
    Hi,

    Be sure the second pipeline is properly connected to the second subreport.
    From the design of the subreport, select the Report | Data option in the
    main menu and select the second pipeline. Next, be sure there are fields
    defined for the JITPipeline.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2006
    Nico -

    Thanks for the response. I've been wrestling with this for a couple of days
    now.

    Everything you suggested was already in place. When I call ppReport1.print
    the ppJITPipeline1GetFieldValue Event fires, but the
    ppJITPipeline2GetFieldValue is never called. (I've put breakpoints on each
    routine.)

    As I mentioned:
    - There is no MasterDataPipeline relationship between the two JITPiplines

    As you suggested:
    - Report / Data points at the correct pipeline
    - The pipeline has fields
    - The report fields all have the correct DataPipeline and DataFields
    selected

    Why won't th report call ppJITPipeline2GetFieldValue?

    Stumped in St. Louis,

    - Madt M.


  • edited October 2006
    Hi Madt,

    Using RB 10.04 and Delphi 7.

    As a test, I created a simple report with two child subreports in the detail
    band. I connected each subreport to a separate JITPipeline on my form each
    of which were set to contain 10 records and a single integer field. I
    implemented each OnGetFieldValue and assigned the values to the record
    index. The report displays the data for both subreports correctly and the
    OnGetFieldValue of each JITPipeline fires as expected. Are you able to get
    the same results with a similar simple application?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2006
    Nico -

    OK. I figured out the problem: During the construction process I caused an
    AV with the second JITPipeline. After the AV, the GetFieldValue function
    call was severed and was never again called (even though the it appeared to
    compile with the unit - blue dot on the left margin). I deleted the
    original event from the JITPipeline and reentered the event with the
    original code and it worked fine.

    I caused the problem by overstating the number of records to be traversed.
    Sigh. Even though I adjusted the record count and recompied the project,
    that didn't correct the functionality of the program.

    Thank you for your suggestions. BTW, I'm using Delphi 5 for this project.

    - Madt Mallinckrodt


  • edited October 2006
    Hi Madt,


    I'm a bit unclear about the problem now. Are you still unable to get the
    GetFieldValue event to fire? Is there another problem I can help with?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2006
    Excellent! Just making sure :).

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2006
    No, it works fine. To correct the problem I had to delete the event
    (GetFieldValue) and re-enter it. After that, the program could be complied
    and run. All good now. . .

    Thanks, - Madt M.


This discussion has been closed.