Jump to content
We've recently updated our Privacy Statement, available here ×

I can't pass parameters via jasperreport server rest api rest_v2/reportExecutions to report


Judes

Recommended Posts

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=val1

it 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/reportExecutions

with 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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...