Jump to content
We've recently updated our Privacy Statement, available here ×

vibhu.ranjan

Members
  • Posts

    9
  • Joined

  • Last visited

vibhu.ranjan's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. if i am commenting el.style.cursor = "pointer"; line then report is coming but drill down is not happing.
  2. 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
  3. Thanks for your reply. What do you means by naming collision? i am just trying to render a simple report.
  4. I am trying to render a chart which is using high chart. But in js console error is coming: highchart is undefined.
  5. I am using visualize.js to render reports but getting the below error: SCRIPT438: Object doesn't support property or method 'filter' visualize.js, line 67 character 13795
  6. Please find below code which i have tried: $(document).ready(function(){ $("#btn3").click(function(){ var userID = $("#userID").val(); var password = $("#password").val(); var rootURL = "http://10.107.63.43:8080/jasperserver-pro/rest_v2/users/" + userID; alert("url is "+rootURL); $.ajax({ type: 'PUT', contentType: 'application/json', url: rootURL, dataType: "json", username : "superuser", password : "superuser", data: { "fullName":"joeuser", "emailAddress":"", "externallyDefined":false, "enabled":true, "tenantId":"Finance", "username":"joeuser", "roles":[ {"name":"ROLE_USER","externallyDefined":false}] }, success: function(data, textStatus, jqXHR){ alert('User created successfully'); }, error: function(jqXHR, textStatus, errorThrown){ alert('User Creation error: ' + textStatus); } }); }); });
×
×
  • Create New...