AnsweredAssumed Answered

Pass parameter from One dashboard to another

Question asked by Raj Karan on Dec 6, 2017
Latest reply on May 14, 2018 by B363Q1MD

I am following this tutorial. Hitachi Vantara Pentaho - BI Suite Tutorials: Send One Dashboard selects (input controls) to another Dashboard selects(v…


I have send parameters to second dashboard through button component, but on the second dashboard i can`t grab them in order to update local parameter.


Button Component expression code -

function sendParameters(){
    var fromDate = this.dashboard.parameters.param1_FromDate;
    var toDate = this.dashboard.parameters.param2_ToDate;
    var id = this.dashboard.parameters.param3_ID;
var url = 'http://localhost:8080/pentaho/api/repos/%3Apublic%3ALink%20Between%20Dashboards%20With%20Params%3ADrill%20Down%20Dashboard%3ADashboard_2.wcdf/generatedContent';
window.location = url+'?send1_FromDate='+fromDate+'&send2_ToDate='+toDate+'&send3_ID='+id;


  • Javascript code snippet not working as `Dashboards` object is not available there.
  • I have tried to use pre-execution of one of the local parameter but `this.dashboard` doesn`t have getQueryParameter function.


JavaScript Code snippet

param1_FromDate= Dashboards.getQueryParameter('send1_FromDate');
param2_ToDate= Dashboards.getQueryParameter('send2_ToDate');
param3_ID= Dashboards.getQueryParameter('send3_ID'); 


Date Input Component pre-execution code