Need a special offer?Find out if your project fits.
+

How to exclude double quotes when export a report to CSV?

Answered
Jefferson asked on December 17, 2019

Dears,
When we need export a report to CSV without double quotes, we are using this function:
 
tabs[3].menu[2].handler = function () {
    flexmonster.exportTo("csv", {filename : "flexmonster.csv", fieldSeparator: ";"},
        function callbackHandler(data){
        savingAs(new Blob([data.data.replace(/\"/g,"")]), "teste.csv");
    });
};
Using the command "replace", we have a high consumer of the PC´s RAM memory.
Is it possible to create a new parameter to the feature that exportTo csv.
For example:
   showQuotes: yes then "Text",123
   showQuotes: no then Text,123
 
Best regards,
Jefferson
 

2 answers

Public
Vera Didenko Vera Didenko Flexmonster December 18, 2019

Hello, Jefferson,
 
Thank you for reaching out to us.
 
Your request sounds reasonable to our team and we will add an option for excluding the quotes.
The new option will be available in the minor release version with the ETA 13th of January.
 
Please let us know if you have any questions.
 
Best regards,
Vera

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 14, 2020

Hello, Jefferson,
 
We are glad to inform you that the usage of quotes in CSV export was optimized.
 
This is provided in the 2.7.23 version of Flexmonster: https://www.flexmonster.com/release-notes/
 
You are welcome to update the component.
Here is our updating to the latest version tutorial for guidance: https://www.flexmonster.com/doc/updating-to-the-latest-version/
 
Please let us know if everything works fine for you.
 
Best regards,
Illia

Please login or Register to Submit Answer