1
In my Java program I select a list of values and wanted to pass this list to iReport as parameter. This parameter would be used in the SQL query: SELECT ... FROM ... WHERE ... IN($P{list})
when I pass a code only it works as Where= $P{code}
but I want to pass several codes at the same time as I do this?
I tried to List code = new Arraylist(); add(1) code; add(2) code; add(3 code);
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("codigo", codigos);
but it didn’t work
I tried to pass a string like "1,2,3" and tb didn’t work