How to export a CSV file with a custom separator from a Banana Table Panel

425 Views Asked by At

I'm using Banana above Solr, and I think the Table panel is really usefull to export data as CSV. But the big problem is that the separator is a comma, nothing else ! I tried to find in the module.js file where it could possible to specify my own separator (e.g: ';') but I didn't find. If someone has a workaround to specify the separator ';' instead of ',' it could be really really nice.

1

There are 1 best solutions below

1
aadel On

You can find it around line 350 of module.js (based on which branch you're on), the line that assigns value to exportQuery variable:

var exportQuery = $scope.panel...

just append csv.separator parameter when filetype is csv