cancel
Showing results for 
Search instead for 
Did you mean: 

exportData, sep=

Former Member
0 Kudos

Hi all,

Table.exportData().saveFile() now writes "sep=," at the beginning of the CSV file, in older versions this was not the case. Is there a way to get rid of this?

Cheers,

-- Micha

Accepted Solutions (0)

Answers (1)

Answers (1)

jamie_cawley
Advisor
Advisor
0 Kudos

What UI5 version are you using?  It appears to work at

SAPUI5 Explored

without issue, which is version 1.32.7.

Regards,

Jamie

SAP - Technology RIG

Former Member
0 Kudos

Yes I know it works on some versions, the problem is with 1.22.3. I cannot upgrade, so I'm wondering if there is a workaround.

-- Micha

Former Member
0 Kudos

I've realized the only workaround is to replace the function, so for the record,

sap.ui.core.util.ExportTypeCSV.prototype.generate = function() {

var aBuffer = [];

    this.generateColumns(aBuffer);

    this.generateRows(aBuffer);

    return aBuffer.join('\n');

}

does the trick, however first Export.js must be loaded, which is the case only after calling exportData().

-- Micha