Passing query parameters with authentication request visualize.js

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email with questions or issues requiring TIBCO review or response.

I am using jasper's visualize.js to display report in a web page. I have created a sample html and need to perform the token based auth. Also i need to pass some query parameters with the auth request. below is my code


<!DOCTYPE html>
  <script src=""></script>
<!-- Provide the URL to visualize.js -->
<div id="container"></div>
<!-- Provide a container for the report -->
<script src="http://localhost:8081/jasperserver-pro/client/visualize.js?logLevel=error&_opt=true"></script>
var str = $.param({ districtId: 12345});
  auth: {
    preAuth: true,
}, function(v) {

I am getting error saying that queryParams in unknown property. I checked the API but it is there in the definition. What is wrong in my usage ?

Please help,

Thank you,


thusira.dissanayake's picture
Joined: Dec 22 2016 - 9:09pm
Last seen: 5 years 3 months ago

Why do you pass the query parameter during auth? Could you not pass the values during report execution?

rpeguet - 1 year 11 months ago

0 Answers:

No answers yet