Judes Posted July 29, 2021 Share Posted July 29, 2021 I am trying to pass custom parameters to report with jasperreport server rest API. When I use reportsService like: http://localhost:8080/jasperserver/rest_v2/reports/my/MyReport.pdf?param1=val1it works well.But when I trying to use reportExecutions Service it doesn't work and return 400 response code. For example with xml:POST http://localhost:8080/jasperserver/rest_v2/reportExecutionswith body: <reportExecutionRequest> <reportUnitUri>/my/MyReport4</reportUnitUri> <outputFormat>pdf</outputFormat> <freshData>true</freshData> <saveDataSnapshot>false</saveDataSnapshot> <interactive>true</interactive> <allowInlineScripts>true</allowInlineScripts> <async>false</async> <parameters> <reportParameter name="param1"> <name> uuuuuuuuuuuuuuuuuu</name> </reportParameter> </parameters></reportExecutionRequest> Can anyone help 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