Home DevShare Designing BIRT Reports

Hide table detail rows based on parameter

Share

by JasonW

Forum - 2,000 postsDevShare - 100 postsCommunity Advisor
Posted 30 Jan 2012 - 09:26 AM

(0)  (0)   (197 views)

By downloading this item, you are agreeing to the Terms of Use for the site.

Example report that uses beforeFactory script to drop detail rows of a table based on a report parameter

Birt Version:-2.6

This example checks the value of a parameter in the beforeFactory script to determine if the detail rows in a report should be displayed.

if( params["HideDetail"].value ){
 reportContext.getDesignHandle().findElement("mytable").getDetail( ).get( 0 ).drop();

}

Note that the table must be named in it's general properties.

 

J

 

Download (3.1 KB)

By downloading this item, you are agreeing to the Terms of Use for the site.


 
Filter More