Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Removing a dataset where clause based on parameter(Removing a dataset where clause based on parameter)
Removing a dataset where clause based on parameter [message #1402788] Thu, 17 July 2014 13:54 Go to next message
Keith Clark is currently offline Keith ClarkFriend
Messages: 11
Registered: July 2014
Junior Member
Hi All.

Try to accomplish what I thought would be a simple task.

I have a query that has the following where clause:

WHERE entereddate BETWEEN ? AND ?
AND siteid = ?

I have report parameters for the start and end dates that are text boxes and a radio selection for the siteid.

What I would like to do is add tot eh radio button an "All" selection that if selected, basically removes the "AND siteid = ?" portion of the sql and selects all sites.

Any suggestions?

Thanks,
Keith
Re: Removing a dataset where clause based on parameter [message #1402843 is a reply to message #1402788] Thu, 17 July 2014 19:00 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

You can modify the query (this.queryText) in the beforeOpen method. So, you could either check the parameter value and remove the And siteid portion or check the parameter and add it.

Michael

Developer Evangelist, Silanis
Re: Removing a dataset where clause based on parameter [message #1403714 is a reply to message #1402843] Fri, 25 July 2014 14:04 Go to previous message
Keith Clark is currently offline Keith ClarkFriend
Messages: 11
Registered: July 2014
Junior Member
Thanks Michael
Previous Topic:Problem using "create table" when building a dataset
Next Topic:Trapping Dataset Exception errors
Goto Forum:
  


Current Time: Tue Apr 23 17:54:26 GMT 2024

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

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

Back to the top