jasper reports - How to use sql substring function in a $X{IN} expression? -


i have query @ report not working after adding substring @ $x{} expression.

select t1.grn qc_master t1 $x{in, t1.i_rep_no.substring(0,1), type} 

i getting error parameter 1 not exist during preview @ ireport/jss. how fix this?

duplicating answer jaspersoft community:

you cannot use sql function inside jasperreports $x clause function per: http://jasperreports.sourceforge.net/sample.reference/query/index.html#clause_functions

instead, have in sql:

and substr(t1.i_rep_no,1,1) in ($p!{type})

with parameter type java.lang.string comma separated values, or resolves that.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -