Pentaho

 View Only

 Sprintf function not work with RequireJS

  • Pentaho
  • Ctools
  • Pentaho
Viviane Gouvea's profile image
Viviane Gouvea posted 05-18-2020 17:31

Hi Guys,

 

I use this function below, with sprintf on a dashboard without requiringJS support and everything works very well, however when I activate the requireJS support the function stops working.

Would anyone have a solution to format the number and work with requireJS active?

 

function f(data) {

  return "R$ " + sprintf('%d', data/1000) + ' M'; 

  } 

 

Best regards,


#Pentaho
#Ctools
Viviane Gouvea's profile image
Viviane Gouvea

In addition, I use this function in the Value Format property of the CCC Line chart