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

Initialize a TppDBText when using SuppressRepeatedValues

edited November 2009 in General
Hi,

I've the case that I suppress the repeeting of values DateField.
But if another Field changes its value then the Datfield should show its
value even it may be equal to the preceding value.
Ist it possible to clear the "old-value" in that case.


RB9.03, D6
--
Norbert

Comments

  • edited November 2009
    Hi Norbert,

    I believe the easiest way to accomplish this would be to take control of the
    visibility of the DBText yourself. Inside the Band.BeforePrint event you
    could keep track of the date value as well as any other values and toggle
    the visibility of the date DBText accordingly. Something like the
    following...

    //First check the other field

    if Report.DataPipelie['MyOtherField'] <> FOtherValue then
    begin
    FOtherValue := Report.DataPipeline['MyOtherField'];
    FDate := 0;
    end;

    //Standard Suppress Repeated Value

    if Report.DataPipeline['MyDateField'] <> FDate then
    begin
    FDate := Report.DataPipeline['MyDateField'];
    DBText1.Visible := True;
    end
    else
    DBText1.Visible := False;

    --
    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.