Visualisejs - Drilldown - Reference

This is when the jasper report has hyperlink type - Reference

by Shraddha Tambe

HTML

<!--Provide URL to visualize.js-->
<script type="text/javascript" src="https://10.133.20.84:8080/jasperserver-pro/client/visualize.js"></script>
<!--Provide container to render your visualization-->
<button id="openReport">Open Sample Report</button>

JavaScript

visualize({
    auth: {
        name: "joeuser",
        password: "joeuser",
        organization: "organization_1"
    }
},function (v) {
    alert('Authenticated Successfully');
    
    $("#openReport").click(function () {
window.open("https://10.133.20.84:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&reportUnit=/public/Samples/Reports/9g.CustomerDetailReport&customerId=4021");
    });
});