Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.6 Export to CSV not working if cellFilter is present #6784

Closed
gine opened this issue Jun 29, 2018 · 0 comments
Closed

v4.6 Export to CSV not working if cellFilter is present #6784

gine opened this issue Jun 29, 2018 · 0 comments

Comments

@gine
Copy link
Contributor

gine commented Jun 29, 2018

When i try to export a table in csv and there is cellFilter in some column i recive this error:

Unknown provider: date:'dd/MM/yy'FilterProvider <- date:'dd/MM/yy'FilterUnknown provider

Unknown provider: bool FilterProvider <- bool provider

This is the colDef conf:

{ "field": "azienda", "name": "Cliente", "width": "**", "sort": { "direction": 'asc', "priority": 0 }},
{ "field": "cliente.tipol", "name": "Tipologia", "width": "*"},
{ "field": "nome","name": "nome", "width": "*"},
{ "field": "cognome", "name": "cognome", "width": "*"},
{ "field": "scadPS", "name": "Scad. PS" ,"cellFilter": 'date:\'dd/MM/yy\'', "width": "6%"},
{ "field": "boolstato", "name": "Assunto", "cellFilter":'bool', "width": "5%"}, 
{ "field": "statoCli","name": "Stato Cliente", 'visible': false,  'filters': [{"term":true}]}

boolstato have a custom filter 'bool'.
scadPS have a classic date filter: "cellFilter": 'date:'dd/MM/yy''

Removing "cellFilter":'bool', and setting "cellFilter": 'date:'dd/MM/yy'' to "cellFilter": 'date:'' the export work correctly.

This filters work correctly on the table.

defields923 pushed a commit to defields923/ui-grid that referenced this issue Oct 30, 2018
This should fix export csv with cellFilter.

closes angular-ui#6784
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants