vibhu.ranjan Posted September 16, 2014 Share Posted September 16, 2014 I am trying to render the report with highChart in visualize.js but getting the error.Please find below code and the error:code:var reportResource = "/CTIF_Folder/testreport/TestRegion"; visualize({auth : {name : "superuser",password : "superuser"}}, function(v) {v("#main").report({resource : reportResource,linkOptions : {beforeRender : function(linkToElemPairs) {linkToElemPairs.forEach(showCursor);},events : {"click" : function(ev, link) {if (link.type == "ReportExecution") {v("#drill-down").report({resource : link.parameters._report});}console.log(link);}}},error : function(err) {alert(err.message);}});function showCursor(pair) {var el = pair.element;el.style.cursor = "pointer";}}); error:Uncaught TypeError: Cannot read property 'style' of undefined Link to comment Share on other sites More sharing options...
vibhu.ranjan Posted September 16, 2014 Author Share Posted September 16, 2014 if i am commentingel.style.cursor = "pointer"; line then report is coming but drill down is not happing. Link to comment Share on other sites More sharing options...
Solution ernestoo Posted September 16, 2014 Solution Share Posted September 16, 2014 I didn't seem to need the showCursor function to get this working properly...here's my example http://jsfiddle.net/ernestoo/ev1wwsjk/ 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