I finally found a solution : $P{PARAM1}.toString().toString().replaceAll("[\\[\\]]", "") This makes smth like 1,2,4 when you select records with these ids. These numbers are returned as strings, so you need a function declared as myFunc(text[]) . You call the function this way: select field1, field2 from myFunc(string_to_array($P{PARAM2},',')) Inside function I use this code : myTable.myFieldId in (select ($1) from generate_series(1,array_upper($1, 1)) as s). I need to change that a little bit in order to add one more checkbox (code=0, label='All'), so as users to check it (and not one by one all checkboxes) when they want all records to be selected. Thanks for your help!
Post Edited by xkorakidis at 05/11/2009 19:25