jasper reports - Adding FilterExpression in JasperReports with help of Java code -
i developing tool in java enable make automations in jasperreports (automatically printing, setting parameters etc..) use jasperreport library. have set filter expression using java code. know how prepare parameters, make in way: map<string, object> parameters = new hashmap<string, object>(); parameters.put("filter", "where name '%.'"); and then, pass parameters while generating pdf report: jasperprint pdf = jasperfillmanager.fillreport(jasperreport, parameters, connection); if there such simple way modify parameters, guess there similar way modify filter expression. i've been searching long time found nothing. the report filter expression (or other expression matter) can set/changed in jasperdesign objects (see setfilterexpression method). jasperdesign object have recompiled jasperreport . an alternative filter expression jrparameter.filter builtin parameter, takes value net.sf.jasperreports.engine.datasetfilter ...