Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: Saving Reports

  1. #1
    Join Date
    Sep 2017
    Posts
    1

    Default Saving Reports

    var date1 = new Date(this.dashboard.getParameterValue("dateFilter_START").toString());
    var date2 = new Date(this.dashboard.getParameterValue("dateFilter_END").toString());
    var start = Math.floor(date1.getTime() / (3600 * 24 * 1000));
    var end = Math.floor(date2.getTime() / (3600 * 24 * 1000));
    var daysDiff = end - start;

    if (daysDiff > 90){
    alert("message "+daysDiff);
    this.dashboard.fireChange('dateFilter_START', '');
    this.dashboard.fireChange('dateFilter_END','');
    return;
    }
    Last edited by sureshdev; 11-30-2018 at 11:10 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2017 Pentaho Corporation. All Rights Reserved.