migmedia Posted March 15, 2013 Share Posted March 15, 2013 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_date=2013-03-01Returns <?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? Link to comment Share on other sites More sharing options...
marianol Posted March 18, 2013 Share Posted March 18, 2013 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/Freight.html?RequestDate=1998-06-01The problem may be that your parameter is defined as a date-time instead of a date. Link to comment Share on other sites More sharing options...
migmedia Posted March 19, 2013 Author Share Posted March 19, 2013 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. Link to comment Share on other sites More sharing options...
Solution migmedia Posted March 19, 2013 Author Solution Share Posted March 19, 2013 The date-format seems to depend on the server locale. For de_DE the date-parameter has to be 'dd.MM.yyyy' formated.It's looks a bit strange, but it works for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now