Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Hide empty table
Hide empty table [message #692840] Tue, 05 July 2011 06:33 Go to next message
frank.dullweber is currently offline frank.dullweber
Messages: 2
Registered: July 2011
Junior Member
How can I hide a complete table in a report if the data set is empty (number of rows = 0)?
Re: Hide empty table [message #692992 is a reply to message #692840] Tue, 05 July 2011 11:18 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Add a column to the table bindings that counts the number of rows. Use
this column in the visibility expression for the table. See attached
example.

for the parameter enter 111 to get no rows or 10101 to get values.

Jason

On 7/5/2011 6:33 AM, forums-noreply@eclipse.org wrote:
> How can I hide a complete table in a report if the data set is empty
> (number of rows = 0)?
Re: Hide empty table [message #708047 is a reply to message #692992] Tue, 02 August 2011 07:34 Go to previous messageGo to next message
jeyinul  is currently offline jeyinul
Messages: 60
Registered: June 2011
Member
Can you explain how to hide empty rows in cross tab.

Attached file is not supported.

Plz help me on this.
Re: Hide empty table [message #708207 is a reply to message #708047] Tue, 02 August 2011 11:12 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Empty crosstab rows should not display by default. Take a look at this
link:
http://www.eclipse.org/birt/phoenix/project/notable2.3.php#jump_4

Jason

On 8/2/2011 7:34 AM, jeyinul wrote:
> Can you explain how to hide empty rows in cross tab.
>
> Attached file is not supported.
>
> Plz help me on this.
Re: Hide empty table [message #890137 is a reply to message #692840] Thu, 21 June 2012 05:04 Go to previous message
Bluish Joe is currently offline Bluish Joe
Messages: 13
Registered: October 2010
Junior Member
Another solution could be http://www.eclipse.org/forums/index.php/mv/msg/208014/890134/#msg_890134, which doesn't need additional columns/report objects.

[Updated on: Fri, 30 November 2012 03:20]

Report message to a moderator

Previous Topic:How to hide the table header when there is no content in the table ?
Next Topic:Can BIRT template accept images from an XML datasource
Goto Forum:
  


Current Time: Fri Jul 25 09:05:18 EDT 2014

Powered by FUDForum. Page generated in 0.07005 seconds