Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Creating BIRT reports using queries that taking dates
Sudhi
HI,
I want to create a report using BIRT. In the report parameter i will select month and year.After selecting this fields,i want to pass employee id and date (1 to end of month)
for getting the result.Here for each employee i want to pass 1- end of month dates.
And also in output also i want to display like
EMPLOYEE_ID 1 2 3 .............................31
456
>X X X................................X
Pls tell me how to achieve that
Sudheesh
Find more posts tagged with
Comments
mwilliams
Hi Sudheesh,
Are your month and year columns separate? Or do you need to combine the month and year parameters to pass to your database?
Sudhi
hi,
i have doubt about ,according to the result catagory i want to add each .
If i select NOv 2008,In query i have to pass 1-nov-2008 to 31-nov-2008.
And arrange the result in display.
mwilliams
Sudheesh,
You can always take the report parameter and build the query in the beforeOpen method of your dataSet depending on the parameter value.
Washu
I believe the example at <br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.com/devshare/designing-birt-reports/176-changing-a-data-set-039-s-query/#description'>Changing
a data set's query - Designs & Code - BIRT Exchange</a><br />
<br />
describes something similar to Michael's suggestion. I have been working with it today and seem to have issues with the date. If the date parameters are entered in a text box, does the data get passed as a string to the query? If I enter 2/1/07 as a parameter, I get this error: <br />
<br />
+ An exception occurred during processing. Please see the following message for details:<br />
Cannot get the result set metadata.<br />
SQL statement does not return a ResultSet object.<br />
SQL error #1: Line 27: Incorrect syntax near 'Feb'.<br />
<br />
Any suggestion would be helpful. I am newer-than-noob. My attempts at parsing have failed. I have been studying posts <br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.com/forum/designing-birt-reports/12589-parameter-date-validation-reformating.html'>http://www.birt-exchange.com/forum/designing-birt-reports/12589-parameter-date-validation-reformating.html</a><br
/>
and<br />
<a class='bbc_url' href='
http://www.birt-exchange.com/devshare/designing-birt-reports/203-convert-string-date-to-date-object-in-birt/#description'>Convert
String Date to Date Object in BIRT - Tips & Tricks - BIRT Exchange</a><br />
<br />
on SimpleDateFormat to no avail. I am using 2.3.1.