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

4.11 -> 6.03 report no longer works

edited September 2002 in General
I've got a report which I put together a while ago using RB 4.11. It has a
few ppDBTexts in the detail band and this band is attached to a DBPipeline
and a TTable. The detail band also contains a sub-report which is attached
to a different (JIT) pipeline.

Now I've rebuilt it with RB 6.03 it no longer works properly.

I set a debug trace on the AfterScroll event of the detail band's TTable.
Whereas before (with 4.11) each time this table scrolled the JIT
pipeline's OpenDataSet would get called, this no longer occurs, so the
sub-report prints exactly the same data for every print of the detail
band.

I guess I can manually call the JIT pipeline's OnOpenDataSet in the detail
band table's AfterScroll but is there some new property I need to set?

Dave Riley
Tangent Software Ltd, Reading, UK

Comments

  • edited September 2002
    There is a master detail JITPipeline example in the main reports demo
    project in your installation. See demo # 139. You should be able to connect
    the detail JITPipeline up to the master DBPipeline using the
    MasterFieldLinks and MasterDataPipeline property of the JITPipeline as shown
    in the demo.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Hmmm, I guess I wasn't previously using the JIT pipeline in the way it was
    intended to be used. But going from 4.11 to 6.03 you've definitely changed
    the way it works.

    I was using the JIT pipeline to access a series of records held inside a
    blob field in each master table record. Previously the JIT pipeline's
    OnOpenDataSet event fired each time the master table scrolled to a new
    record so I used that to read the blob into memory. I don't really have a
    master-detail link field.

    I guess now I could keep a record, in a form variable, of which master
    record I've read in and in the JIT pipeline's GetFieldValue handler check
    that it matches the master table's current record.

    Thanks,
    Dave.


    On Fri, 20 Sep 2002 09:43:41 -0500, support@digital-metaphors.com (Jim
This discussion has been closed.