Hide a header text field if DBField is missing
Hi,
First, wish you a Happy New Year to everyone !
I've got a report used with or without detail section (pipe filled with data
or not). If detail section is empty (eg no visible field), I want to hide
the headers in the top section.
How can I code an event to condition the visibility of my region containing
the headers and lines.
Thank you for your help.
First, wish you a Happy New Year to everyone !
I've got a report used with or without detail section (pipe filled with data
or not). If detail section is empty (eg no visible field), I want to hide
the headers in the top section.
How can I code an event to condition the visibility of my region containing
the headers and lines.
Thank you for your help.
This discussion has been closed.
Comments
In the BeforePrint event of the band that contains the header label, you can
check to see if the field in NULL and toggle the visibility of the label
accordingly. See the following article on how to check for null fields in
RAP.
http://www.digital-metaphors.com/rbWiki/RAP/Fundamentals/Check_for_IsNull
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'm not clear on the question, but thought I would add that the Report and
ChildReport classes have a NoDataBehaviors property that can be used to
control what happens when the DataPipeline is empty.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com