@mwilliams said: With a date time parameter, you'll need to include the '' surrounding the parameter in your script and make sure that the dateTime value is entered in the correct format for your database. If you're doing optional parameters, you'll need to do what I described above if the user chooses to leave the parameter blank. If you want to put a default range in, you'll just add your where clause in script similar to the above script only with static values rather than a parameter. I can provide a simple example if needed. Just let me know your BIRT version if you'd like an example.
Can any one give me an example for this... I am using BIRT version 4.6
If the query runs in the designer and connects to the same database used on the server, then the issue is related to the server installation/configuration or the database drivers on the server. You said that you are running Eclipse Indigo. The best option is to upgrade to the latest version of Eclipse BIRT. Your old reports should still run.
If I understand correctly, the query runs on the server when the dates are not null. In that case, a possible workaround is to replace or remove the null dates in the beforeOpen of the data set. Here is an old thread that provides more detail:
https://forums.opentext.com/forums/discussion/comment/218385