bplummer Posted March 16, 2015 Share Posted March 16, 2015 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" } }; visualize.config(vConfig); //container1 with param visualize(function (v) { var report = v.report({ resource: "/organizations/organization_1/Reports/Total_Savings_Report", container: "#container1", params: { "CustomerName": ["test1"] }, error: handleError }); $("#button").click(function () { report.params({ "CustomerName": ["test2"] }).run(); }); }); Link to comment Share on other sites More sharing options...
bplummer Posted March 16, 2015 Author Share Posted March 16, 2015 Ugh - sorry for the bad code formatting. Thanks for any help! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now