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

Suppressing/Hiding Detail Lines?

edited November 2006 in General
Hello All!

I am using version 10.03 and I have a question about suppressing/hiding
detail lines.

Is it possible to suppress/hide the detail section on a given, predetermined
condition?

For example, if my detail line had clients in good standing (not past due)
and clients
in past due standing, and if I wanted to display either one or the other
based on the
"standing" (i.e. past due balance <> 0 or past due balance = 0), is that
possible?
If so, can someone provide feedback or point me in the right direction?

Thanks in advance,
Everett

Comments

  • edited November 2006
    Hi Everett,

    The easiest way to do this would be to alter your query to only return the
    clients that have a balance past due. Pre-processing your data in this way
    would make the report work as is, without any extra code.

    If this is not possible, you could use the DetailBand.BeforePrint to check
    the field value, then toggle the visibility of the band based on that value.

    ppDetailBand.Visible := (ppReport.DataPipeline['Balance'] > 0);

    --
    Regards,

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

    Best Regards,

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

    Thank you so very much for your reply! That worked perfectly (setting the
    visible property conditionally).

    Regards,
    Everett
This discussion has been closed.