Jump to content
JasperReports Library 7.0 is now available ×

Visualize.js and dashboard data


Recommended Posts

Hello everybody.

I'm trying to get data from Jasper dashboard before it renders in window. I'm using a script with visualize.js in HTLM page. I would like to get "beforeRender" event, but I don't know how to do it. Should I use this event or something else for getting data? How should I configure Jasper dashboard for getting this event?
 
 v("#container").dashboard({
          server: "https://localhost:8443/jasperserver-pro",    
          resource: "/public/TestDashboard",
          params: initialParams,
          linkOptions: {
            beforeRender: function (linkToElemPairs) {
              console.log('linkToElemPairs: ', linkToElemPairs);
              linkToElemPairs.forEach(showCursor);
            },
           error: function(e) { 
                alert(e); 
            } 
        });
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...