datatables csv export can not change the default value
datatables csv export can not change the default value
dffernandezr
Posts: 3Questions: 1Answers: 0
I've defined
...
extend: 'csv',
exportOptions: {
fieldSeparator: ";",
fieldBoundary: "'"
}
...
But always I got "5595","Smith","Jhon","js@noemail.net"
Answers
Your code snippet seems to work in this test case:
https://live.datatables.net/regoweyo/1/edit
Please provide a link to a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
That's but I do not why does not work inside my code
Thanks
Yes, thus the need for a test case
Kevin
Sorry, the web is private. I can not share any url
Thanks again
Possibly you can copy and paste the relevant parts of the code into a simple test case to show the issue you are having. The actual data isn't causing the issue so you can use fake data. Update my test case if you wish.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Maybe the problem is with a specific version of Buttons or Datatables you are using. My test case uses the current versions of both. Maybe there is a syntax issue.
Kevin