Jump to content
Changes to the Jaspersoft community edition download ×

Parameters passed to dashboard not forwarded to reports


cbarlow3

Recommended Posts

When we were using JRS 5.6, our application was able to use visualizer.js to run a JRS dashboard, and it was able to pass some environmental parameters (user, branch, etc.) to the dashbaord, which it in turn would pass to the consituent reports (now "dashlets").  That way the reports could be written to filter results based on the passed parameters rather than having to prompt for this information.  We have recently been testing JRS 7.1, and it appears that the parameters we pass to the (new, non-legacy) dashboards are not being passed on to the dashlet reports.  Has anyone else run into this, and does anyone know the correct way to pass parameters to a dashboard now that will still trickle down to the reports? 

Here's an example of how we launch a dashboard from within our application:

          v.dashboard({            resource: args.dashboard,            container: '#container',            params: CR.Jaspersoft.getResourceParams(),            success: function() {              CR.Jaspersoft.log('CR.Jaspersoft.displayDashboard success', args.dashboard);            },            error: function(e) {              if (e.errorCode === 'invalid.resource.type' && CR.Jaspersoft.redirectURL) {                CR.Jaspersoft.warn('CR.Jaspersoft.displayDashboard redirecting legacy dashboard', args.dashboard);                window.location = CR.Jaspersoft.redirectURL;              } else {                args.failure(e);                CR.Jaspersoft.messageKeyStone({                  message: 'Dashboard Error:' + args.dashboard,                  error: e                });              }            }          });[/code]

   

Link to comment
Share on other sites

  • Replies 1
  • 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...