問題を軽くしないように頼りすぎないことを願っています。Shopware 5、BatchProcessウィンドウをOwn Pluginから開きます
ここに私達は行く:
私はShopware 5. 用のカスタムプラグインを開発する問題を抱えている私はすでに一定の基準の注文を一覧表示し、作業のプラグインを持っています。 今、このグリッドウィンドウのツールバーにボタンがあります。
ボタンは、すでにショップウェアのネイティブ「オーダー」ウィンドウで利用可能なバッチ処理ウィンドウを開く必要があります。
Q:グリッドの選択したIDでこのアプリケーションを開くことはできますか?
私が持っているものHERESに:
[...]
createToolbarButton: function() {
var me = this;
return Ext.create('Ext.button.Button', {
text: 'Batch Processing Orders',
name: 'customBatchProcessButton',
cls: 'secondary',
handler: function() {
me.onClickCustomBatchProcessButton(me);
}
});
},
onClickCustomBatchProcessButton: function(me){
var thisGrid = me.getTransferGrid();
var records = thisGrid.getSelectionModel().getSelection();
console.log("Grid");
console.log(thisGrid);
console.log("records");
console.log(records);
Shopware.app.Application.addSubApplication({
name: 'Shopware.apps.Order',
action: 'batch',
params: {
mode: 'multi',
records: records
}
});
}
[...]
それは常にオーダーウィンドウの通常のビューを開きます。 (コンソールにエラーはありません) 誰か提案がありますか? それは素晴らしいでしょう! お時間をありがとう:)
挨拶
EDIT: ねえ、これまでにご返信をお願い致します。 私はこのようなバッチ・プロセス・ウィンドウを開くために管理:私は ...
me.getView('Shopware.apps.Order.view.batch.Window').create({
orderStatusStore: Ext.create('Shopware.apps.Base.store.OrderStatus').load(),
records: orderRecords,
mode: 'multi'
}).show({});
しかし、今問題イスト、バッチ処理のためのイベントは、フォーム上のボタンには適用されませんまだ試行錯誤中です。