Fixes issue 21538: Message shown when a P&E window has an implicit filter
authorAugusto Mauch <augusto.mauch@openbravo.com>
Tue, 18 Sep 2012 17:35:57 +0200
changeset 17976 6239626a1593
parent 17975 af32d2655e73
child 17977 c1726636a231
Fixes issue 21538: Message shown when a P&E window has an implicit filter

When the grid of a P&E window has an implicit filter applied to it, a message with the name of the filter will be shown on top of the grid.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js	Tue Sep 18 16:50:46 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js	Tue Sep 18 17:35:57 2012 +0200
@@ -100,6 +100,10 @@
 
     // required to show the funnel icon and to work
     this.filterClause = this.gridProperties.filterClause;
+    if (this.filterClause && this.gridProperties.filterName) {
+      this.view.messageBar.setMessage(isc.OBMessageBar.TYPE_INFO, '<div><div class="' + OB.Styles.MessageBar.leftMsgContainerStyle + '">' + this.gridProperties.filterName + '<br/>' + OB.I18N.getLabel('OBUIAPP_ClearFilters') + '</div></div>', ' ');
+      this.view.messageBar.hasFilterMessage = true;
+    }
 
     this.orderByClause = this.gridProperties.orderByClause;