Hello everyone,
I've tried to create an Xlsx/CSV Export in the Quickstart example of Sencha Architect 4.2 (modern toolkit).
Code:
Uncaught TypeError: grid.getColumnManager is not a function at constructor.prepareData (Exporter.js?_dc=1585902658065:145)
at constructor.getExporter (Exporter.js?_dc=1585902658065:130)
at constructor.saveDocumentAs (Exporter.js?_dc=1585902658065:87)
at constructor.onExport (MainTabPanelViewController.js?_dc=1585902658065:40)
at constructor.fire (ext-modern-all-debug.js?_dc=1585902658065:14616)
at constructor.doFireEvent (ext-modern-all-debug.js?_dc=1585902658065:15354)
at constructor.doFireEvent (ext-modern-all-debug.js?_dc=1585902658065:33626)
at constructor.prototype.doFireEvent (ext-modern-all-debug.js?_dc=1585902658065:41848)
at constructor.fireEventArgs (ext-modern-all-debug.js?_dc=1585902658065:15261)
at constructor.fireAction (ext-modern-all-debug.js?_dc=1585902658065:15276)
I'm just using a button and the onTab-Event...
Code:
{
xtype: 'button',
cfg: {
type: 'excel07',
ext: 'xlsx',
includeGroups: true,
includeSummary: true
},
iconCls: 'xfa fa-file-excel',
text: 'Exportieren',
listeners: {
tap: 'onExport'
}
}
Code:
onExport: function(button, e, eOpts) {
var cfg = Ext.merge({
title: 'Grid export demo',
fileName: 'GridExport' + '.' + (button.cfg.ext || button.cfg.type)
}, button.cfg);
//this.getView().getComponent('employeeGrid').saveDocumentAs(cfg);
Ext.getCmp('employeeGrid').saveDocumentAs(cfg);
}
Where is my mistake by using this GridExporter-Plugin?
There's also a problem using the classic toolkit...