Report hyperlinks
Use a master report and select from hyperlinks to open a secondary slave report.
by Pavel Savushchyk
HTML
<!--Provide URL to visualize.js-->
<script src="http://underscorejs.org/underscore.js"></script>
<script src="http://code.jquery.com/jquery-2.1.0.js"></script>
<script src="http://localhost:8080/bugfix/client/visualize.js?_opt=false"></script>
<!--Provide container to render your visualization-->
<div>
<div style="width:830px;" id="main"></div>
<div style="width:500px;" id="drill-down"></div>
</div>
CSS
#main{
float: left;
}
#drill-down{
float: left;
}
JavaScript
visualize({
auth: {
name: "joeuser",
password: "joeuser",
organization: "organization_1"
}
}, function (v) {
v("#main").report({
resource: "/public/01._Geographic_Results_by_Segment_Report",
linkOptions: {
events: {
"click": function(ev, link){
alert(JSON.stringify(link));
}
}
},
error: function (err) {
alert(err.message);
}
});
});