Jaspersoft BI Tools

iReport,Jaspersoft Design Studio,Jaspersoft Server, Schema Workbench,Analysis,Dashboards, Self Service BI, Domains,Topics,Ad-Hoc Reports, Jaspersoft ETL, Embedding BI,HTML-5 charts, Fusion Charts,JFree Charts,Drill down reports , Drill down Dashboards,Visualize.js, Performance Tuning, D3 Charts, Jaspersoft Customization

Monday, June 23, 2014

Embedding a report with parameter using visualize.js in Japsersoft - A test scenario

This post is a replica of https://www.youtube.com/watch?v=_VoM7OYkcNQ&feature=youtu.be and this post is the test outcome for me.

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<div id="container"><div>Why Jaspersoft</div></div>

<script type="text/javascript" src="http://localhost:8081/jasperserver-pro/client/visualize.js?_opt=false&logLevel=debug"></script> 
<script type="text/javascript">
visualize(
    {
        auth:{
        name:"jasperadmin",
        password:"jasperadmin"
        }
    },function (v){
    var report=v.report({
        resource : "/public/Samples/Reports/9.CustomerDetailReport",
        container:"#container",
        params:{"customerId":[4033]}
    });     
});
</script>

</body>
</html>





:-)