Hi,
I want to execute a report by ReST-2 with a date as a mandatory parameter:
curl -u user:password http://jasper:8080/jasperserver/rest_v2/reports/testReport.csv?start_dat...
Returns
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><errors><error><defaultmessage>Geben Sie einen gültigen Wert für den Typ 'Date' an.</defaultmessage><errorcode>fillParameters.error.invalidValueForType</errorcode></error></errors>
What is the correct formating of the date for the GET-Parameter?
2 Answers:
Posted on March 18, 2013 at 7:11am
The format you are using should be correct for a regular date parameter, For example try this on the freight report (comes with the samples) as an example http://localhost:8080/jasperserver-pro/rest_v2/reports/reports/samples/F...
The problem may be that your parameter is defined as a date-time instead of a date.
Thanks for the hint.
But the date-format seems to depend on the server locale. For de_DE the date-parameter has to be 'dd.MM.yyyy' formated.