We are building our own UI, and taking the selected values in that UI and passing them as parameters to a BIRT report. We've done several this way, and the process works perfectly....EXCEPT, we need a listbox with multiselect capabilities to pass a list of selected values to a report for use in an IN clause.<br />
<br />
I've read about 50 different ways to "make this work" but so far, none of them seem to work at all. I found this post: <a class='bbc_url' href='
http://www.birt-exchange.org/devshare/designing-birt-reports/771-using-a-multivalue-parameter-in-a-in-clause/#description'>Using a Multivalue parameter in a in clause - Designs & Code - BIRT Exchange</a> and it seemed reasonably promising, but so far it does not appear to work. I have the following code in my BeforeOpen event: <br />
<br />
this.queryText = this.queryText.replace("4,8", params["reportSelectedJobIds"].value);<br />
<br />
I know there is text in my query to match the 4,8 part, and I've set the default value of the reportSelectedJobIds parameter to a much different set of values. The query works, but it returns values based on the original IN clause, not the substituted IN clause.<br />
<br />
What am I doing wrong? Is there a way to view the newly created SQL before it executes??<br />
<br />
Thanks for any help anyone can provide....I cannot believe this is a feature that is THIS hard to implement.<br />
<br />
Paul Cooper<br />
Lead Developer, EMS Performance Improvement Center