Dynamic where clause in report? [message #631306] |
Wed, 06 October 2010 18:38  |
Eclipse User |
|
|
|
Hi,
Based on the user's inputs, the where clause may contain one or two conditions. Is it possible to have a dynamic where clause in the report's query?
For example, if customer name exists, the where clause will become
select * from customers
where customer_name = ?
if both customer name and phone number exist, the where clause will become
select * from customers
where customer_name = ? and customer_phone_number = ?
Thanks,
kenny
|
|
|
|
|
Re: Dynamic where clause in report? [message #631562 is a reply to message #631306] |
Thu, 07 October 2010 21:22  |
Eclipse User |
|
|
|
You can do pretty much whatever you want to the query text (not just the where clause) by clicking on the data set, going to the Script tab and going into the beforeOpen event. There should be a lot of examples of that in the BIRT communities, I'd search for beforeOpen or queryText.
|
|
|
Powered by
FUDForum. Page generated in 0.12566 seconds