Hiding grids/tables in BIRT whith no results from datasource

不问归期 提交于 2019-12-06 09:37:52

You can do this using the visibilty tab on the property editor.

  1. On you data table (or the grid containing it if you want to hide the whole grid) go to binding tab.
  2. Add an aggregation with function "COUNT" and select one of the data set fields for the expression.
  3. Go to the properties->Visibilty tab and tick "Hide Element" and in the expression put row["Aggregation"] == 0 replacing the aggregation name if necessary.
  4. Create a 1x1 grid containing a "No data present" label.
  5. Associate the grid with the data set and add the same aggregation as above.
  6. On the Visibility tab click "Hide Element" again, but using row["Aggregation"] != 0 this time.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!