dec Posted April 22, 2013 Share Posted April 22, 2013 Hello, I create a query with one dynamic parameter : select nom,prenom from patient $P!{COND2}I've a parameter COND1 (String) use as a prompt, COND2 is not promptable, the default value expression is : ( $P{COND1}==null ? "" : " where nom ='"+$P{COND1}+"'")COND2 as string, it worksNow, I want transform COND1 as a collection, i try with a in clause in COND2 parameter, it didn't work, please, help me to solve this. Link to comment Share on other sites More sharing options...
cjasper Posted April 22, 2013 Share Posted April 22, 2013 Create a java class which takes your string as input parameter and returns any collection/list. call that method to convert your string to collection. Link to comment Share on other sites More sharing options...
dec Posted April 23, 2013 Author Share Posted April 23, 2013 I solve this by using methad .toList Thks Link to comment Share on other sites More sharing options...
dec Posted April 23, 2013 Author Share Posted April 23, 2013 Solve by using toList method.Thks 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