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

JITPipeline Help

edited April 2011 in General
I am creating a dynamic template based on a design one. The dynamically
constructed template is used to display the contents of a StringGrid. In
the detail band, I can get one row to display and that is all. The other
rows never show. The BeforePrint event is called only three times for a
set of data 160 rows long. The GetGridFieldValue is called several times
and does loop through the columns more than a few times. I based this
roughly on the example from the Dev manual.

Questions:

1. Why is there only one row?

2. How can I get the fields to stay the size I design them to be? After
the data is added, they seem to shrink to some default size.

3. I am trying to alternate colors in each row. I created a BeforePrint
event which does get called and does color part of a row. Only the first
5 columns out of 10 are colored though. Any idea why only the first ones
are colored?

Thanks

Shawn



--- posted by geoForum on http://www.newswhat.com

Comments

  • edited April 2011
    Hi Shawn,

    For future reference, please post using your name in the "From" field
    rather than your email address. Also please include your environment
    specifications (Delphi Version, RB Version, etc.).

    It does not look like you are using the JITPipeline as designed. You
    need to implement the OnGetFieldValue event of the pipeline in order to
    retrieve data. You also need to define the number of records to
    traverse using the RecordCount property.

    Take a look at demos 136 - 140 for examples of how JITPipelines are
    meant to be used with ReportBuilder. Also take a look at the
    TppJITPipeline topic in the RBuilder help for more information.

    Alternating color detail bands (Greenbar support) was added as a feature
    for RB 12. Use the Background1 and Background2 properties of the
    DetailBand to do so.


    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2011
    ?Thank you for the reply. I am using 12.04.

    I did implement the OnGetFieldValue event just as shown in the example in
    the manual. This is where OnGetFieldValue gets called. I also set the
    RecordCount property to equal RowCount-1 as shown in the example. It does
    seem to call the event several times (maybe even 160 as it should) but the
    RowIndex value is always 1 when it enters this event.

    I looked at several of the examples and have tried several changes to make
    this work. Any more ideas?

    Thanks for the background info, I will give that a try.

    Thanks again.

    Shawn



    --- posted by geoForum on http://www.newswhat.com
  • edited April 2011
    ?I figured out what was happening. I had not set the DataPipeline for the
    Report, just for the individual fields. The report must be what increments
    the count.

    Anyway, that works now.

    I tried the background color as you suggested but the alternating color is
    only outside the data fields. What do I need to do to get the fields to
    show this background color?

    Thanks

    Shawn



    --- posted by geoForum on http://www.newswhat.com
  • edited April 2011
    Hi Shawn,

    All text components have a Transparent property. Be sure this property
    is set to True.


    Regards,

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

    Best Regards,

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