Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Hide row if element is empty
Hide row if element is empty [message #953451] Mon, 22 October 2012 04:58 Go to next message
Chris Greenwood is currently offline Chris Greenwood
Messages: 1
Registered: October 2012
Junior Member
Hi all,

I have this expression in an element in the detail row of my table:

if(dataSetRow["INSTR_NAME"] == null)
{
'hide row'
}
else
{
dataSetRow["INSTR_NAME"]
}


However instead of displaying the string "hide row" I need it to actually hide the row.

Is there a way to do this?

Thanks
Re: Hide row if element is empty [message #954204 is a reply to message #953451] Mon, 22 October 2012 17:37 Go to previous message
Michael Williams is currently online Michael Williams
Messages: 883
Registered: July 2009
Senior Member

Select the detail row, by clicking on the detail row tab to the left of the table, when the table is selected. Then, go to the visibility section of the property editor. Here, you can enter an expression like:

row["INSTR_NAME") == null

If this condition return true, the row will be hidden, if it return false, it will show. Hope this helps.


Regards,

Michael Williams
BIRT Exchange
Michael's BIRT Blog
Previous Topic:Changing style of hyperlinks
Next Topic:How to run a BIRT report through command line
Goto Forum:
  


Current Time: Wed Jun 19 01:07:30 EDT 2013

Powered by FUDForum. Page generated in 0.02573 seconds