Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Passing date parameter using the API
AltoA
Hello, I need to run my reports using the Report Engine API and set few parameters, one of them is date.<br />
have no idea what type is it, i tried the java.utils.Date but its not the correct one.<br />
That is the code: <em class='bbc'><strong class='bbc'>task.setParameterValue("RequestDate", new Date(1234567));</strong></em><br />
and the error: <strong class='bbc'><em class='bbc'>The type of parameter "RequestDate" is expected as "date", not "java.util.Date".</em></strong><br />
<br />
Any ideas?
Find more posts tagged with
Comments
mwilliams
Hi AltoA,
Where are you putting this code? You might try using java.sql.date rather than java.util.date.
AltoA
Thanks.