|
|
|
|
|
|
|
Re: Parameter to IN clause [message #214039 is a reply to message #214014] |
Thu, 25 January 2007 15:33 |
Eclipse User |
|
|
|
Originally posted by: aaaaa.xxx.com
Mathi,
The answr depends on whether you plan to use the BIRT Web Viewer or Custom
Parameter Screen, if you use the BIRT viewer there is NO way of passing
multiple values , other than letting user type comme delimited values fo
rthe input which would be impractical.
If you develop your own custom parameter screen, you can pass multiple
values for a given parameter.
Please look at the xample here...This uses a html page to call a servlet
with multiple parameter and thats the only way you can achieve that.
http://wiki.eclipse.org/index.php/Dynamic_Report_Servlet
|
|
|
|
Re: Parameter to IN clause [message #216095 is a reply to message #213911] |
Thu, 01 February 2007 06:59 |
Eclipse User |
|
|
|
Originally posted by: mauro.tisc.edu.au
I have got around this problem by replacing the comma in the comma seperated
list with ','
For example, I enter a parameter such as 37,23,47,58
In the Edit Data Set window, Property Binding section, I modified the query
to:
"SELECT .... FROM ... WHERE id in ('" +
params["pID"].value.replace(",","','") + "')"
The javascript replace() method replaces all instances of , with ','
So the query string executed is changed from '37,23,47,58' to
'37','23','47','58' which produces the correct output.
Hope this helps
Regards MV
"Mathi" <kavi_mathi@yahoo.co.in> wrote in message
news:1399374fcde3240eb6ac135e26d0eff2$1@www.eclipse.org...
> Thanks JB ,
> In this way only one parameter can be attached.I need to pass multiple
> values to that single parameter.
>
> Regards
> Mathi
>
|
|
|
Powered by
FUDForum. Page generated in 0.05310 seconds