Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I hide a row in BIRT?

Tags:

report

birt

I have a data table with 2 detail rows. In certain cases I want to show the first detail row and in some cases I want to show the 2nd. Something like:

if (row["field"] == "N") {
hideRow1();
}
else {
hideRow2();
}
like image 799
Rocky Pulley Avatar asked Dec 02 '25 23:12

Rocky Pulley


1 Answers

  • In the layout tab in BIRT Report Designer, select the first detail row (so that it is higlighted).
  • In the Properties tab of the Property editor for the row, select the Visibility section:
    • Check the Hide Element checkbox;
    • Click the fx button next to the Expression, and enter a formula like: row["field"] == 'N'.
  • Repeat the process for the second detail row with a formula like: row["field"] != 'N'.