Jump to content
Changes to the Jaspersoft community edition download ×

How to pass date as parameter in visualize.js


Recommended Posts

I created a report with an Input Control for parameter "DateRange" with "DAY-1" as default.

I wrote the below code to access the report from past e.g. for 1st July. It is not giving any error, however it always displayed the report for "DAY-1". Pleaes do let me know, how I can I customize on the basis of Date.

var report = v.report({
           resource: "/public/Performance_Report",
           container: "#container",
           params: { "DateRange": ["2014-07-01 00:00:00"] }, //{ "DateRange": ["2014-07-01"] },
           error: function (err) {
               alert("Visualize JS error: " + err.message);
           }
 
Link to comment
Share on other sites

  • 5 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 5 months later...

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