cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5: Data is empty when Exporting Smart Table to Excel

09-13-2018 4:46 PM
1626 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

Hi Experts,

I am trying to export a smart table to excel but there is no data in .xls file

In the smart table, I have used tableBindingPath to a model : modelplanning

And my 2 models in manifest.json as below:

Here is my smart table before and after export:

Could you help me please?

Thank you in advance.

Best regards,

Dieu

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

rajveer_1989
Explorer
0 Likes

Hello dieu,

Did you find the solution on this ?because i'm also facing the same issue for the same case.

Regards

Rajveer Rawat

rajveer_1989
Explorer
0 Likes

I found the solution for this.

0 Likes

rajveer_1989 Can you share your solution for this ? Thank you

rajveer_1989
Explorer
0 Likes

Hello Akma,

Please add the below event and code

onPressExportToExcel: function (event)

{

var tabData = view.getModel("table").getProperty("/data");

var mExcelSettings = event.getParameter("exportSettings");

//overwrite the odata with JSON data

mExcelSettings.dataSource = tabData;

}

note: table is my new model used:

entitySet="table>/data" tableBindingPath="table>/data"

BR

Rajveer

rajveer_1989
Explorer
0 Likes

akma.saupe: answered