Pentaho

 View Only

 CDE: Set "Default if empty" in RadioButton using Pentaho CDE vesion 9

  • Pentaho
  • Ctools
  • Kettle
  • Pentaho
  • Pentaho Data Integration PDI
Damia Valero's profile image
Damia Valero posted 09-30-2020 11:35

Hi community, 

 

I'm migrating from Pentaho CDE (Community Edition) from version 8 to version 9. In one of the dashboards, I have a RadioButton with the property "Default if Empty" = True, which is available in the menu.

 

However, in version 9 this option does not appear anymore, and all the charts and tables are failing when the dashboard is rendered for the first time. Any idea on how to solve this?

 

I have tried to set the property in PreExecution, but with no luck (this.defaultIfEmpty = true; ).

 

Thanks in advance,

Damià


#PentahoDataIntegrationPDI
#Ctools
#Kettle
#Pentaho
Damia Valero's profile image
Damia Valero

Solved. Used Custom Parameter instead of Simple Parameter. Then, in javascript code check if it's empty. If so, set to desired value

 

function(){ if(this.dashboard.getParameterValue('Parameter')){ this.dashboard.setParameter('Parameter',0); }}