vadim.kalyshkin Posted November 21, 2018 Share Posted November 21, 2018 Hello I just started to work with the visualize.js and experince the problem with rendering my Dashboard. The developer tool in chrome shows me the following errorsFailed to load resource:http://localhost:8081/jasperserver-pro/rest_v2/reportExecutions the server responded with a status of 400 ()visualize.js:54 17:41:21.966 [bi/report/Report] [visualize.js:54] [ERROR] - illegal.parameter.value.error : the value "/public/Workshop/Ad_Hoc_View" of the parameter "reportURI" is invalid. here is the code<html><head><script src="http://localhost:8081/jasperserver-pro/client/visualize.js"></script></head><body><div id="container"></div><script>visualize({ auth: { name: "jasperadmin", password: "jasperadmin" }}, function (v) { var report = v.report({ resource: "/public/Workshop/Profit_Dashboard", container: "#container", });});</script> </body></html> Link to comment Share on other sites More sharing options...
Solution prusyn Posted November 22, 2018 Solution Share Posted November 22, 2018 You are using report rendering function for rendering dashboards - That's the problem. You should be using v.dashboard. For example:visualize({ auth: { name: "jasperadmin", password: "jasperadmin", }}, function (v) { var dashboard = v.dashboard({ resource: "/public/Workshop/Profit_Dashboard", container: "#container" });});[/code] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now