-
27 Dec 2012 11:31 AM #1
Getting an error while using Exporter
Getting an error while using Exporter
I'm using the exporter functionality to export data from a grid to Excel. When my grid is loaded the 3rd time, I see this error
Ext.Button.Ext.extend.onDisableChange[/COLOR]ext-all-debug.js:31696Ext.Button.Ext.extend.onEnable[/COLOR]ext-all-debug.js:31688- Ext.extend.enable[/COLOR]ext-all-debug.js:11711
- setLink[/COLOR]:9090/sentry-web/static/js/sentry/Exporter-all.js:159
- EXTUTIL.Event.fire[/COLOR]ext-all-debug.js:310
- ]EXTUTIL.Observable.fireEvent[/COLOR]ext-all-debug.js:54
- Ext.data.Store.Ext.extend.loadRecords[/COLOR]ext-all-debug.js:24557
- [COLOR=red !important]Ext.extend.onRead[/COLOR]ext-all-debug.js:25780
- (anonymous function)[/COLOR]ext-all-debug.js:25744
- Ext.extend.handleResponse[/COLOR]ext-all-debug.js:4646
- handleTransactionResponse[/COLOR]ext-base-debug.js:1887
- checkResponseext-base-debug.js:1935
- (anonymous function)ext-base-debug.js:922
My code is as follows
[/COLOR]Code:if (parent.phoneGrid.store.getTotalCount() > 0) { var exportButton = new Ext.ux.Exporter.Button({ component:parent.phoneGrid.gridPanel, text:"Export to .xls" }); parent.phoneGrid.gridPanel.getTopToolbar().add(exportButton); parent.phoneGrid.gridPanel.getTopToolbar().doLayout() }
-
29 Dec 2012 9:09 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
You may want to ask the author of the class.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote