Hi, I would like to use String list in IN operator of a query without using multiselect list as input. In the JasperServer when I run the report I would like to use more Stirng values separating them with comma in "single value" input parameter: value1, value2, value3,value4 ... so without apostrophes. These values should be placed in the query of the report in this way: 'value1', 'value2', 'value3','value4'. I have tried to use $P!{param}: because it is substituted in the report. ($P{param} = java.lang.String, example query: select * from table where col1 in $P!{param}. I used default variable expression in iReport for adding apostrophes to the input string : "('"+$P{param}.replaceAll( ",", "','" )+"')". When I run the report in the Jasperserver it did not do the replacement. The report works if I write this into the parameter field: 'value1', 'value2', 'value3','value4': After that I defined a new parameter in the iReport, let's say: $P{pre_param} (java.lang.String) and I used the same default variable expression for this : "('"+$P{param}.replaceAll( ",", "','" )+"')". Here I used different query in the definition of the report in JasperServer: select * from table where col1 in $P!{pre_param}. I supposed that the value in the $P{pre_param} would be automatically replaced when I ran the report. It did not work either in the JasperServer, however it worked well in iReport. As I can see it the Jasperserver uses the default value of the parameters which are defined once in the jrxml file and it cannot be changed. My questions are: is there any way to "force" JasperServer for applying dinamically the Default Value Expression when the report is run? Do you have any other idea how can I use comma separated string list as input parameter without apostrophes? e.g. converting comma separated values from java.lang.String to Java.util.List and than using $X!{col1,param}...Thank you for your help in advance. Post Edited by asdsa asdsa at 02/04/09 20:38