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

Skip some records

edited December 2013 in General
Dear,

Is it possible to skip some records from the DetailBand.

I have a field (Skip= Boolean) in the dataset
I have a dataset of 10 records. Record 5 and 8 have field 'Skip' = 1.

So I must only see records like:

1
2
3
4
6
7
9
10

I can't filter in the dataset because some fields have influents of all the
records.
So how can I skip the record 5 and 8?

Regards
Christophe

Comments

  • edited December 2013
    OnBeforePrint() event of Detail band:

    begin
    Detail.visible := DataView['Skip'] <> 1;
    end;

  • edited December 2013
    Dear Paul,

    Thanks, this works.
    Shame on me that I didn't see the simple solution.

    Regards
    Christophe

  • edited December 2013
    On 14/12/2013 09:58, Christophe.Ravaut wrote:

    It happens to us all :)
This discussion has been closed.