Hello,
I’m trying to use TableExport add-on, but I have a problems. In my app I have table and button. When someone click on it, app should send me file with converted table. But instead file my URL changes to http://localhost:8888/DQApplication/APP/2/file.xls and application exits.
I’ve downloaded sample application and it works. I use the same table and the same code:
excelExport = new ExcelExport(table);
excelExport.excludeCollapsedColumns();
excelExport.setDisplayTotals(true);
excelExport.setRowHeaders(true);
excelExport.export();
The add-on essentially opens a new URL/Window to display the Excel sheet, but your browser doesn’t open it for some reason. Perhaps it hasn’t been configured to open Excel sheets or there is a security reason not to lauch Excel. If that is the case, you would want to download it rather than launch it.
Perhaps TableExport should use the Content-Disposition setting, as described
here .
It might also be nice if the TableExport could open the file to a new window/tab so that it wouldn’t close the current application.
I believe you can override the relevant methods in TableExport to do those things.