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
Request clarification before answering.
Hello dieu,
Did you find the solution on this ?because i'm also facing the same issue for the same case.
Regards
Rajveer Rawat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.