How to set the locale of the running report via rest_v2 webservice?

0

I am running report on the JR server (v5.0.0 CE) calling v2 restful service like as following:

http://localhost:8080/jasperserver/rest_v2/reports/reports/MyReport.pdf?...

The report MyReport.jrxml is designed in iReport and it can run and show the report both in EN and TR locales
after changing iReport's locale through "Compilation and execution" settings appropriately. After uploading the report with its bundle properties 
files to the server, I tried to specify the locale of the running report by passsing REPORT_LOCALE parameter in the url as shown above.
However the pdf output is rendered using server's locale ie en_US.

So I want to know how to specify the locale of the to be run report on the server via rest webservices, preferably v2 rest ws?

Thanks.

kairat.biy's picture
Joined: Dec 13 2012 - 3:24am
Last seen: 6 years 8 months ago

1 Answer:

1

I was able to solve my problem by appending userLocale=en to the login POST request. Then use the session key of the returned response for the upcoming next requests.

kairat.biy's picture
Joined: Dec 13 2012 - 3:24am
Last seen: 6 years 8 months ago
Feedback