Jump to content

Recommended Posts

Posted

Hi All,

I have implemented the Jasper Sever Dashboard using visualize.js, its working in local with floowing URLS

But it is not working with the IP address instead of hostname. And one more thing is currently we are using Jasper Server & our application in same domain, so I dont want to hard code the IP adress in JSP. If it is hard coded, again I have to take care when we are moving patch from one server to other.

Current/Working Implementation: (jasperserver war file name : kpi-server(5.6 version))

<head>

 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 
<!-- Provide the URL to visualize.js -->
 
<script type="text/javascript">
visualize({
auth: {
organization:"organizations",
name : "superuser",
password: "superuser"
}
},
function(v){
var report = v.report({
resource: "/public/Samples/Reports/AccountList",
container: "#container"
});
});
</script>
 
</head>
<body>
<!-- Provide a container for the report -->
<div id="container"></div>
</body>

Expected Implementation: (jasperserver war file name : kpi-server(5.6 version))

<head>
 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 
<!-- Provide the URL to visualize.js -->
<script src="/kpi-server/client/visualize.js?logLevel=debug"></script> <!--   Since both are in same domain -->
 
<script type="text/javascript">
visualize({
auth: {
organization:"organizations",
name : "superuser",
password: "superuser"
}
},
function(v){
var report = v.report({
resource: "/public/Samples/Reports/AccountList",
container: "#container"
});
});
</script>
 
</head>
<body>
<!-- Provide a container for the report -->
<div id="container"></div>

 

</body>

 

Note:

      I have seen easyXDM documentation also, since visualize.js intergation done with easyXDM. It is working with IP address in same domain & different domain also.

Kindly suggest me, if I have done wrong.

Regards,

VV Nagesh Bodapati.

 

 

  • 4 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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