Jump to content
Changes to the Jaspersoft community edition download ×

Setting up pagination within a drill down report generated from another report link event in Visualize.js


luke_9

Recommended Posts

I am trying to create controls to move between the different pages in a report generated from another report. 

A drill down repor is created from the first report and paramaters are passed from the report to the drilldown. The drilldown report is being created from the event on the linkOptions. I've added what this looks like below (not a working example). 

I have tried different methods for pagination but can't get it working possibly because the drilldown is created via an event on the first report.

How can pagination control next page, current page, previous page etc be made to work with a drilldown report?

var report = v.report({
        resource: "",
        container: "#container",
linkOptions: {
            events: {
               "click": function (ev, link) {
                     drilldown =  v("#drill-down").report({
                            resource: link.parameters._report,           
            },
            events: {
                "click": function(ev, link){
                        var url = link.href;
                        window.open(url,"_blank");   
            }    
        },
        error: function (err) {
            alert(err.message);
        },
                            params: {
                             link.paramaters....
                          }
                     }); 
 
Thanks
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...