|
Re: Using an IN clause on an integer with report parameter [message #1831119 is a reply to message #1829197] |
Tue, 11 August 2020 21:27 |
Thomas Gutmann Messages: 21 Registered: April 2020 |
Junior Member |
|
|
Hello Andrew,
this is default behavior of BIRT but I found a small solution which I use on my reports.
On the parameter dialog of the dataset i use the expression builder "fx" and add params["myParam"].toString().
The result will be a csv-list (type is string) like '19,45,78'
On the WHERE-clause I serach after the according numbers in the string, e.g.:
WHERE INSTR( ? , cast(ID as varchar(10))) > 0
-- versio with values --
WHERE INSTR('19,45,78', cast(45 as varchar(10))) > 0 -- result is: true
WHERE INSTR('19,45,78', cast(55 as varchar(10))) > 0 -- result is: false
I hope it will help you a little bit.
Kind regards
Thomas
|
|
|
|
Powered by
FUDForum. Page generated in 0.04119 seconds