From b334b33f6cfb505e683646a789e4dd5bee3cad96 Mon Sep 17 00:00:00 2001 From: jennylee Date: Wed, 14 May 2014 12:47:25 -0400 Subject: [PATCH] BUG-14946 The data list of a PM Table is not been updated after adding or deleting a row. The grid is been reload after adding or deleting a row in this list. --- workflow/engine/templates/pmTables/data.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/engine/templates/pmTables/data.js b/workflow/engine/templates/pmTables/data.js index e50711417..6751d0d39 100755 --- a/workflow/engine/templates/pmTables/data.js +++ b/workflow/engine/templates/pmTables/data.js @@ -277,6 +277,7 @@ Ext.onReady(function(){ Ext.data.DataProxy.addListener('write', function(proxy, action, result, res, rs) { //PMExt.notify(_('ID_UPDATE'), res.raw.message) + infoGrid.store.reload(); }); // all exception events @@ -542,8 +543,8 @@ DeletePMTableRow = function(){ PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_REMOVE_FIELD'), function(){ var records = Ext.getCmp('infoGrid').getSelectionModel().getSelections(); Ext.each(records, Ext.getCmp('infoGrid').store.remove, Ext.getCmp('infoGrid').store); + infoGrid.store.reload(); }); - }; //Load Import PM Table From CSV Source