uzrk Posted November 11, 2010 Share Posted November 11, 2010 I'm creating a domain report with iReport and having a problem with <queryFilterString>.When I use "OR" sentence in the queryFilterString, it returns an error below:com.jaspersoft.jasperserver.api.JSExceptionWrapper:java.lang.RuntimeException: exception initting subfilters at com.jaspersoft.ji.adhoc.strategy.StrategyAwareDomainQueryExecuter.createDatasource(StrategyAwareDomainQueryExecuter.java:154) at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:681)Can't we use "OR" sentence in queryFilterString?I'm using iReport 3.7.1.1 and JasperServer 3.7.1. ThanksCode:<query> <queryFields> <queryField id="dim_facility.facility"/> <queryField id="dim_time.year"/> <queryField id="dim_time.month"/> <queryField id="sales"/> </queryFields> <queryFilterString> (dim_market.market_nm == market_nm_1 OR '1' == market_nm_1_null) and (dim_scale.scale_nm == scale_nm_2 OR '1' == scale_nm_2_null) and (dim_product.product_nm == product_nm_3 OR '1' == product_nm_3_null) </queryFilterString></query> Link to comment Share on other sites More sharing options...
bbartholow Posted April 15, 2011 Share Posted April 15, 2011 I would like to know how to do this as well. We have two input prompts and need one or the other to be filled in. How do I write this filter string? Brian Link to comment Share on other sites More sharing options...
rade Posted June 1, 2011 Share Posted June 1, 2011 Same problem, How to use "or"?Radek Link to comment Share on other sites More sharing options...
jwatne Posted August 25, 2011 Share Posted August 25, 2011 I am interested in knowing this, as well. I am getting similar Exceptions when attempting to use "or" clauses. Post Edited by jwatne at 08/25/2011 10:58 AM Link to comment Share on other sites More sharing options...
javier.ggi90 Posted February 25, 2016 Share Posted February 25, 2016 I know it is 5 years later but has anyone found the solution for this? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now