Pentaho

 View Only

 Migrate custom component from 7 to 8.x : missing js class error ?

  • Pentaho
  • Ctools
  • Pentaho
Nico Scott's profile image
Nico Scott posted 05-15-2019 07:43

Hello  

I migrated Pentaho 7 (bi server) to pentaho 8.1 (reinstall from zero) and I get a js error when I load a page WCDF. Error come from a custom component javascript execution (it's a grid open source from here) created for older version. Error message in js console :

   CDF : Object type TableWithButtons can't be mapped to a valid class vwgmq   

This error come from js generatedContent (compilated js sections from the WCDF file) : 

   Dashboards.addComponents([ ... render_mytable]); <== bug

The component is open source here : https://github.com/bhericher/TableWithButtons . It was originally designed for pentaho 5.4. It works on 7 and I can modify component source. But I dont know why there's an error because custom component seems correctly installed. 

- Whats new in Pentaho 8 JS components ?

- I think it's a missing JS class, but where I do create it ?

- Can you help me ? 

 


#Pentaho
#Ctools
Paulo Pires's profile image
Paulo Pires

Try to use dashboard.addComponents([ ... render_mytable]); instead, it was updated.

Dashboard - Pentaho Documentation 

Regards