Skip to main content



      Home
Home » Archived » BIRT » Multiple values for Report Parameters
Multiple values for Report Parameters [message #221578] Wed, 28 February 2007 04:48 Go to next message
Eclipse UserFriend
Keeping the question short ...

Can multiple values be supplied to a report parameter?

Thanks,
Ravi Chamarthy
Re: Multiple values for Report Parameters [message #221695 is a reply to message #221578] Wed, 28 February 2007 13:19 Go to previous messageGo to next message
Eclipse UserFriend
Hello Ravi,

Yes. You can supply multiple values for a report parameter. While in the
design phase, set the report parameter type to either combo box or list.
That way it would accept multiple parameters.

Thanks
Bidyut

> Keeping the question short ...
>
> Can multiple values be supplied to a report parameter?
>
> Thanks,
> Ravi Chamarthy
Re: Multiple values for Report Parameters [message #221719 is a reply to message #221578] Wed, 28 February 2007 13:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: xxx.xxx.cl

Ravi wrote:
> Keeping the question short ...
> Can multiple values be supplied to a report parameter?

Mauro answered at 2/1/2007 3:59 AM:
Message-ID: <eps355$e6u$1@utils.eclipse.org>

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.
Re: Multiple values for Report Parameters [message #236630 is a reply to message #221719] Thu, 26 April 2007 18:18 Go to previous message
Eclipse UserFriend
Román wrote:

> Ravi wrote:
>
>> Keeping the question short ...
>> Can multiple values be supplied to a report parameter?
>
>
>
> 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(",","','") + "')"
>
Here is something I have tried:

For a query like
select * from tbl where id in (?,?,?)

The 'Parameters' in dataset editor can be used to set values for the
different '?' (dynamic markers) , this can be linked to report parameter
also.

regards,
Sunitha.
Previous Topic:How to monitor report progress
Next Topic:Where to create engine?
Goto Forum:
  


Current Time: Sat May 10 15:57:26 EDT 2025

Powered by FUDForum. Page generated in 0.03903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top