Reusing Report instance in Visualize.js?

0

Hi,
I would like to lean about visualize.js a bit more deeper.
I just got one thing to ask for more comprehensive.
Can I reuse report instance that already created?

For example:

visualize(
    {
        auth:{
            name: "superuser",
            password: "superuser"
        }
    },
    function(v){
        var report = v.report({
            resource: "old uri",
            container: "old container",
            error: function(err){
                alert(err.message);
            }
        });
 
        $("#select_dropdownList").change(function(){
            report.resource = "new uri....";
            report.container = "new container id";
            report.run();
        });
    }
);

Is it possible to do that?
Thanks

Sakura Hana's picture
Joined: Aug 8 2013 - 9:19pm
Last seen: 4 years 10 months ago

1 Answer:

0

There's an example of what's you're trying to do in the "JasperReports Server Programming Guide".

http://community.jaspersoft.com/documentation?version=12873

 

Working example in the following page:

http://lbicloud.lakeel.com:85/JinjiFileupload/

 

hozawa's picture
46817
Joined: Apr 24 2010 - 4:31pm
Last seen: 2 months 1 week ago
Feedback
randomness