Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

problem exporting cubegrid to excel

$
0
0
smartclient_v90p_2013-12-19
chrome 30

I'm trying to export the cubegrid shown in cubegrid.jpg using the following code. When I click on the button, I get a file button at the bottom of the page. When I open the file, I get a spreadsheet that only shows the headers for the column dimensions (cubegrid.jpg). Looking at the operation using chrome tools, the net traffic (netraffic.txt) shows all the cubegrid info packaged as a form. In the console, it gives me the warning:

Resource interpreted as Document but transferred with MIME type application/msexcel: "http://localhost:8091/DEMATIC/isomorphic/IDACall?isc_rpc=1&isc_v=v9.0p_2013-12-19&isc_tnum=10". ISC_Core.js?isc_version=SNAPSHOT_v9.1d_2013-10-08.js:1018

How can I get this to work?

Thanks

Code:


                isc.DefaultButton.create({
                    ID : "mExcelButton",
                    title:"${exportExcel}", 
                    prompt:"${exportExcel}",
                    click:function () {
                          report.exportClientData({ exportAs: "xls",
                              exportToClient: true,
                              exportDisplay: "download",
                              exportFilename: "export.xls"
                                });
                    }
                });


Attached Images
File Type: jpg excel.jpg (103.5 KB)
File Type: jpg cubegrid.jpg (78.9 KB)
Attached Files
File Type: txt nettraffic.txt (6.0 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles