Skip to main content



      Home
Home » Archived » BIRT » BIRT Row (Hide Row)
BIRT Row [message #1264335] Wed, 05 March 2014 01:24 Go to next message
Eclipse UserFriend
Hello,

I'm trying to Hide entire row, if all of the element/column in that row is '0'.

i'm using

if(data["abc"] = '0')
{
row["abc"]=null;
}
else
{
dataSetrow["abc"]
}

Thanks,



Re: BIRT Row [message #1265055 is a reply to message #1264335] Wed, 05 March 2014 13:13 Go to previous message
Eclipse UserFriend
Here is a simple example to hide a row on a Grid, linked to a dataset containing a "name" column :

  1. Open your rptDesign in the Report Design Perspective
  2. Select the row that you want to hide
  3. Go to the Property Editor View, in the Visibility tab
  4. Check 'Hide element', and select 'For all outputs'
  5. In the details group, use the following expression, which must return true when you want to hide the row :
    row["name"]=="Test"



You can set a more complex expression if you want to check several values in your dataset, but this example will hide the selected row when the name is equal to Test.

[Updated on: Wed, 05 March 2014 13:14] by Moderator

Previous Topic:Concurrency Issue With POJO oda datasource
Next Topic:Output type in Pdf
Goto Forum:
  


Current Time: Sun Jul 20 02:32:06 EDT 2025

Powered by FUDForum. Page generated in 0.05026 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top