目的: 顯示資料 - 資料一直累加, 不清空原本的資料 -
處理說明: 1> Ext.getCmp('sub_Grid').store.clearOnPageLoad = false;
1>*.js - store.clearOnPageLoad = false;
{
xtype: 'button',
id: 'sub_btn_Show',
//hidden: true,
flex: 2,
border: 1,
text: '資料顯示', //sub2
iconCls: 'icon-search',
handler: function () {
//--> 需改為將 TMNO 的[AMM_TMDWG]資料加入 store
var np = {};
np["sub_BRP"] = Ext.getCmp("sub_BRP").getValue();
np["sub_TMNO"] = Ext.getCmp("sub_TMNO").getValue();
//console.log('np:', np);
Ext.getCmp('sub_Grid').store.getProxy().url = '../api/V120402API/getsubData';
Ext.getCmp('sub_Grid').store.getProxy().extraParams = np; //分頁OK,篩選條件OK
Ext.getCmp('sub_Grid').store.clearOnPageLoad = false;
Ext.getCmp('sub_Grid').reloadGirdData();
}
}, // end of 顯示資料