accessing param data in call to Visualize.js

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email with questions or issues requiring TIBCO review or response.

 Visualize question that should be obvious (but obviously not to me …)

Doing a demo.  I want to flip between params to show different data.  Is there a way to read the param that was passed in, in javascript, so I can do a conditional?  This is what I have – want to make the button toggle between “test” and “Evan Hospital”:

    vConfig = {
        auth: {
            name: "superuser",
            password: "superuser"


    //container1 with param
    visualize(function (v) {
        var report ={
            resource: "/organizations/organization_1/Reports/Total_Savings_Report",
            container: "#container1",
            params: { "CustomerName": ["test1"] },
            error: handleError

        $("#button").click(function () {
            report.params({ "CustomerName": ["test2"] }).run();

bplummer's picture
Joined: Oct 29 2013 - 12:14pm
Last seen: 5 years 5 months ago

Ugh - sorry for the bad code formatting.  Thanks for any help!

bplummer - 7 years 3 months ago

0 Answers:

No answers yet