From 862d6531db24fc3b3c2dfcafcb00df5e715ec0e1 Mon Sep 17 00:00:00 2001 From: jennylee Date: Fri, 1 Nov 2013 09:51:03 -0400 Subject: [PATCH] BUG-12254 Funcionalidad Search en las grillas DATA de los PMTables y Report Tables. Se aniadio la nueva funcionalidad de busqueda en el display de los datos de los PMTables y Report Tables, en ADMIN > Settings > PM Tables > Data, el cual realiza las busquedas por todas las columnas del PM Table o Report Table. Se corrigio el ordenamiento ASC y DESC. --- workflow/engine/templates/pmTables/data.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/workflow/engine/templates/pmTables/data.js b/workflow/engine/templates/pmTables/data.js index 82a0b529b..fa5ec31d3 100755 --- a/workflow/engine/templates/pmTables/data.js +++ b/workflow/engine/templates/pmTables/data.js @@ -102,7 +102,7 @@ Ext.onReady(function(){ clearTextButton = new Ext.Action({ text: 'X', ctCls:'pm_search_x_button', - handler: GridByDefault + handler: GridByDefault }); //This loop loads columns and fields to store and column model @@ -463,14 +463,15 @@ onMessageContextMenu = function (grid, rowIndex, e) { /////JS FUNCTIONS //Do Search Function - DoSearch = function(){ - infoGrid.store.load({params: {textFilter: searchText.getValue()}}); + infoGrid.store.setBaseParam('textFilter', searchText.getValue()); + infoGrid.store.load({params: {start : 0 , limit : pageSize }}); }; //Load Grid By Default GridByDefault = function(){ searchText.reset(); + infoGrid.store.setBaseParam('textFilter', searchText.getValue()); infoGrid.store.load(); };