Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Re-Enabling Filters
praposo
I have some code in the beforefactory, that disables the report parameters and also creates a page break, if selected by the user. When I run the report in the browser a second time once the filters have been disabled. It seems like the beforefactory doesn't get run again, and the filters remain disabled. Is there any way around this? I am currently using v2.2.2
this some of the code that I use in the beforefactory to disable the report parameters
dshandle = reportContext.getReportRunnable().designHandle.getDesignHandle().findDataSet("ActiveClients");
filters = dshandle.filtersIterator();
while( filters.hasNext() ){
filterHandle = filters.next();
if( filterHandle.getExpr().indexOf("CLIENT_CASE") >= 0 && params["ClientName"].value[0] == '(All)') {
dshandle.removeFilter( filterHandle.getStructure() );
filters = dshandle.filtersIterator(); continue;
}
}
}
Find more posts tagged with
Comments
praposo
i downloaded the latest version of birt 2.3.1 and this doesn't seem to be a problem with the current web viewer.