私はSencha Grid Exporterプラグインを使用していますが、Excelにエクスポートしても問題なく動作しますが、CSVやその他のアプリケーションにエクスポートすることはできません。CSVまたはxlsx以外の他のタイプにエクスポートすると、Sencha Grid Exporterが失敗しますか?
KitchenSinkの例に示すように正常に動作します。
http://docs.sencha.com/extjs/6.2.1/classic/Ext.grid.plugin.Exporter.html
Ext.getCmp('grid').saveDocumentAs({
type: 'csv', // What other possible values can go here
title: globals.reportName,
fileName: 'myExport.csv'
});
以下のようなエラーが付属しています:あなたはrequires
が欠落している
Uncaught Error: [Ext.createByAlias] Unrecognized alias: exporter.CSV
at Ext.Inventory.instantiateByAlias (app.js?_dc=1481916938387:13520)
at Ext.Factory.create (app.js?_dc=1481916938387:23199)
at constructor.getExporter (app.js?_dc=1481916938387:204593)
at constructor.saveDocumentAs (app.js?_dc=1481916938387:204520)
at constructor.saveDocumentAs (app.js?_dc=1481916938387:5355)
at constructor.onMenuitemClick (app.js?_dc=1481916938387:255332)
at constructor.fire (app.js?_dc=1481916938387:19281)
at constructor.doFireEvent (app.js?_dc=1481916938387:20248)
at constructor.doFireEvent (app.js?_dc=1481916938387:65488)
at constructor.prototype.doFireEvent (app.js?_dc=1481916938387:56438)
これを追加するには、問題を修正する必要があります。しかし、輸出者を手動で輸入することによって意味を明確にしてください、SAを使って手動で輸出する方法はわかりません。 – aMazing
@aMazing「必要な部分」はそれだけです。 – Alexander
が正しい。私の場合は、SAにプロジェクトに使用されているすべてのタイプの要件を追加する必要があります。また、ExporterがPDFをサポートしている場合、あなたの頭の上から知っていますか?またはとにかく私はそれをpdfにすることができる – aMazing