Open Report in Server with Parameter over URL

Hello!

Is it possible, to open a report, incl. one Parameter, just with typing a URL?

Example: http://jasperserver.com/report?report=calculation&parameter1=123456

Thank you!

fohnbit's picture
Joined: Nov 11 2011 - 4:20am
Last seen: 9 years 5 months ago

1 Answer:

hozawa's picture
190915
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago

Hello! Thank you! This helps. I can start the execution of the report, but when I want to download it, I get the Error 404. The request ID does not exists. I run the report syncron. After finish, I get the Answer XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<reportExecution>
<exports>
<export>
<id>pdf</id>
<outputResource>
<contentType>application/pdf</contentType>
</outputResource>
<status>ready</status>
</export>
</exports>
<reportURI>/reports/Besuchsreport</reportURI>
<requestId>1226381261_1396628457096_84</requestId>
<status>ready</status>
<totalPages>2</totalPages>
</reportExecution>

So I copy the requestID and try:
http://192.168.111.1:8080/jasperserver/rest_v2/reportExecutions/12263812...
But get Error 404

Also:
http://192.168.111.1:8080/jasperserver/rest_v2/reportExecutions/12263812...
show error 404.

Maybe you have an idea? Must I set up on the server something?
And how long is the report available to download on the server?

Thank you!

fohnbit - 9 years 6 months ago

OK, got it. It was because I don´t use cookies in my code. Now it works!
Thanks!

fohnbit - 9 years 6 months ago
Feedback
randomness