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();
}
<br />
Note that the table must be named in it's general properties.<br />
<br />
J