get interactive HTML5 chart from rest v2 api reports

Hy!

It is possible to get  interactive HTML5 chart through rest v2 api reports from browser?

Are there any solution for this?

I realized, if i setting the isInteractive parameter to false, i got link to the chart picture.

I cant found any document for this.

Thanks, Bence

vbence's picture
141
Joined: Jan 21 2015 - 12:53am
Last seen: 8 years 6 months ago

i find the correct answer my main question here: https://community.jaspersoft.com/questions/847592/it-possible-create-int...

vbence - 8 years 7 months ago

2 Answers:

It's documented in JasperReports Server Web Service Guide in "REST v2 - Report Services" - "Running a Report". Check the arguments to reports interface.

hozawa's picture
190735
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago

meanwhile i found it is not possible. I found a solution for this: visualize js, but it's not work for fiddler.
this is my html:
<!-- Provide URL to Visualize.js -->
<script type="text/javascript" src="https://serverAddress/jasperserver-pro/client/visualize.js"></script>
<!-- Provide container to render your visualization -->
<div id="container"></div>

and this is the js:
visualize({
server: "https://serverAddress/",
auth: {
name : "jasperadmin",
password: "mypassword",
organization:"organization_1"
}
}).done(function(v){
var report = v.report({
resource: "/KSZF/NYITOTT_KOTESALLOMANY/NyitottKotesallomany", (I watched this for web ui report mouse right click properties, so the kszf is in the root (http://snag.gy/BHQG1.jpg))
container:"#container"
});
}).fail(function(err){
alert(err.message);
});

My report run well in web ui, and i see visualize.js get worked in the browser(chrome), but I have different errors:

Uncaught TypeError: Cannot read property 'done' of undefined fiddle.jshell.net/:29
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
https://serverAddress/xdm.html?logEnabled=true&logLevel=error&xdm_e=http...

This is the network answers for the request:
http://snag.gy/Xwkvs.jpg

I try many things, different settings, but cant work.

any idea?
thanks

vbence - 8 years 7 months ago

Could you please provide any link for jasper library or API for Java.

sharmavd1983 - 7 years 4 months ago

Could you please provide any link for jasper library or API for Java.

sharmavd1983's picture
Joined: Nov 27 2013 - 1:05am
Last seen: 2 years 2 months ago
Feedback
randomness