Pentaho Tools :

Pentaho C-Tools(CDE,CDF,CDA),Pentaho CE & EE Server,OLAP-Cubes,Analysis using Pivot4J, Saiku Analytics, Saiku Reporting, Ad-hoc Reporting using Interactive Reporting Tool,Dashboards,Reports using PRD, PDD,Data Integration using Kettle ETL,Data Mining usign WEKA,Integration of Servers with Databases,Mobile/iPad compatible Dashboards using Bootstrap Css,Drilldown dashboards,Interactive Dashboards

Friday 12 May 2017

Tip : show parameter value in an alert in Table Component Click Action function in Pentaho CDE

Use below code to see what is the parameter values on dashboard in java script alert function.

In my case, I needed to show it in Table Component Click action method and on confirmation I can pass it to drill down report.


function f(){
var pDate=this.dashboard.getParameterValue('paramDate');
alert(pDate);
}


References : 
http://forums.pentaho.com/showthread.php?223258-How-to-alert-a-date-type-parameter-value-in-Click-Action-of-Table-Component&p=457778#post457778

http://forums.pentaho.com/showthread.php?222911-how-to-get-parameter-value