3

The pentaho cde export component is working for me , it export the table data and the file name is cda-export.csv, can I set the file name atomically?

Helping Hand..
  • 2,430
  • 4
  • 32
  • 52
wave
  • 61
  • 3

2 Answers2

0

Try to call exportData with the parameter {filename : 'myfilename'}

bhericher
  • 667
  • 4
  • 13
0

I don't understand well how the parameters map to the actual Js function, but in the Expression parameter of a Button component, the following can be done:

function exportData(){
    render_YourComponentName.queryState.exportData('xls', null,  {filename:'custom_name.csv'});
}
Pang
  • 9,564
  • 146
  • 81
  • 122
elabx
  • 31
  • 5