Skip to Content

SAP UI5 - TreeTable Export to CSV / XLSX

Hi all,

I'm having trouble setting up the export of a UI5 TreeTable to CSV/Excel.

I'm using the following code:

var oTreeTable = this.getView().byId("TreeTableBasic");	
exportType: new sap.ui.core.util.ExportTypeCSV({separatorChar : ";"}),
    	columns : [{
		name : "test1",
		template : {
			content : "{test1}"
}).saveFile().catch(function(oError) {
}).then(function() {

When I open the application and start the download I get the following error:

TypeError: The property "sPath" of an undefined or null reference can not be opened.

There's not even a popup opening to ask for the location to save the file.

I already tried the same code with a standard table which worked fine.

Do you have any ideas how to fix this problem? I don't even know where to find the property "sPath".

Many thanks and best regards


Add comment
10|10000 characters needed characters exceeded

0 Answers