Hello,
I have created a report with Eclipse BIRT with two datetime parameters, START and END linked to the parameters declared on the query:
select name from person where birth_date_time between ? and ?
If i execute it on exclipse BIRT it runs perfectly, but if i import the report into the reportServer the link between parameters in some point is not working.
In the report server, when i try to import the .rptdesing file the extract parameter tool is working (it detects START and END) and I just need to adjust the type to date and time parameter. In the layout, when I execute it, i have two parts, one heading where i print out the value of the parameters that it is working as expected, and the main section with a table of names that is empty, where should appear all the person borned between selected parameter dates.
This table is not empty since if i execute it on Eclipse BIRT the results are there, so my guess is that the parameters are being CASTED to string instead of DATETIME (thats why their value are being printed out in the heather properly) however is not working in the select clause.
Is that possible? How could I avoid that?
Thanks
Hello,
As an update, i tried to do exactly the same with a String Parameter.
- I created the Dataset in Eclipse Birt with this jdbc query:
select name,birth_date_time from person where name = ?
- I created one string parameter in Eclipse Birt linked to the query parameter
- I created a heading on the report to see the value of the parameter
- I created a table to show the results of the query.
- If i execute this in Eclipse BIRT it runs perfectly.
- When i import this report into reportServer, it automatically detects the String Parameter
- If I execute it, it print out the parameter value correclty in the header, but the table is empty.
The conection with the datasource is correct too since if i dont make use of parameters, i retrieve all the values from the table.
Again, the link between report parameter and query parameter is not running as expected, since I get no results.
Can somebody please help me to figure out what i am doing wrong?
Thanks