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)
BIRT & OpenReports parameter problem
JTremb95
Has anyone else been having a problem with passing a report parameter of type Date. OpenReports doesn?t seem to like the java.util.Date class with BIRTs Date type.
BIRTs report paramter
Name: inputDate
Data Type: Date
Display Type: Text Box
OpenReports report parameter
Name: inputDate
Class: java.util.Date
Type: Date
My error message: The type of parameter "inputDate" is expected as "date", not "java.util.Date".
Any help is very much appreciated.
Find more posts tagged with
Comments
pietrob
use java.sql.Date instead. i.e.: Date.valueOf("2008-10-01");<br />
<blockquote class='ipsBlockquote' data-author="JTremb95"><p>Has anyone else been having a problem with passing a report parameter of type Date. OpenReports doesn?t seem to like the java.util.Date class with BIRTs Date type.<br />
<br />
BIRTs report paramter<br />
Name: inputDate<br />
Data Type: Date<br />
Display Type: Text Box<br />
<br />
OpenReports report parameter<br />
Name: inputDate<br />
Class: java.util.Date<br />
Type: Date<br />
<br />
My error message: The type of parameter "inputDate" is expected as "date", not "java.util.Date".<br />
<br />
Any help is very much appreciated.</p></blockquote>
good_vish
Thanks for the hint,
I had assumed java.util.Date, but it is indeed java.sql.Date!