[Lada-commits] [PATCH 2 of 5] Issue8. Fixed filtering of comboboxes while typing

Wald Commits scm-commit at wald.intevation.org
Tue Aug 13 16:23:30 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1376390162 -7200
# Node ID 596501c165608cb59efe8ad09f0d6ae10cdf4d9d
# Parent  0a8fd4c2e7a8e8044724ff41c69eaf8525b29969
Issue8. Fixed filtering of comboboxes while typing.

diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/Viewport.js
--- a/app/view/Viewport.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/Viewport.js	Tue Aug 13 12:36:02 2013 +0200
@@ -17,7 +17,7 @@
     ],
     initComponent: function() {
         console.log('Setting up Viewport');
-        this.initSearch();
+        //this.initSearch();
 
         // Development related: 
         // Disable "initSearch" call and enable one of the following init
@@ -26,9 +26,9 @@
         //this.initProbe();
         //this.initOrt();
         //this.initMessung();
-        //this.initMesswert();
+        this.initMesswert();
 
-        this.setInfo();
+        //this.setInfo();
         this.callParent(arguments);
     },
     /**
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Datenbasis.js
--- a/app/view/widgets/Datenbasis.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Datenbasis.js	Tue Aug 13 12:36:02 2013 +0200
@@ -25,6 +25,12 @@
         displayField:'datenbasis',
         valueField: 'datenbasisId',
         emptyText:'Wählen Sie eine Datenbasis',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Messeinheit.js
--- a/app/view/widgets/Messeinheit.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Messeinheit.js	Tue Aug 13 12:36:02 2013 +0200
@@ -1,5 +1,5 @@
 /**
- * Combobox for Umweltbereich
+ * Combobox for Messeinheit
  */
 Ext.define('Lada.view.widgets.Messeinheit' ,{
         extend: 'Ext.form.ComboBox',
@@ -8,6 +8,12 @@
         displayField: 'einheit',
         valueField: 'mehId',
         emptyText:'Wählen Sie eine Messeinheit',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Messgroesse.js
--- a/app/view/widgets/Messgroesse.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Messgroesse.js	Tue Aug 13 12:36:02 2013 +0200
@@ -8,7 +8,7 @@
         displayField: 'messgro0esse',
         valueField: 'messgroesseId',
         emptyText:'Wählen Sie eine Messgröße',
-        forceSelection: true,
+        // Enable filtering of comboboxes
         autoSelect: false,
         queryMode: 'local',
         triggerAction : 'all',
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Messmethode.js
--- a/app/view/widgets/Messmethode.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Messmethode.js	Tue Aug 13 12:36:02 2013 +0200
@@ -26,6 +26,12 @@
         displayField:'messmethhode',
         valueField: 'mmtId',
         emptyText:'Wählen Sie eine Messmethode',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Mst.js
--- a/app/view/widgets/Mst.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Mst.js	Tue Aug 13 12:36:02 2013 +0200
@@ -26,6 +26,12 @@
         valueField: 'mstId',
         typeAhead: true,
         emptyText:'Wählen Sie eine Messstelle',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Netzbetreiber.js
--- a/app/view/widgets/Netzbetreiber.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Netzbetreiber.js	Tue Aug 13 12:36:02 2013 +0200
@@ -25,6 +25,12 @@
         displayField:'netzbetreiber',
         valueField: 'netzbetreiberId',
         emptyText:'Wählen Sie einen Netzbetreiber',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Ortdetail.js
--- a/app/view/widgets/Ortdetail.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Ortdetail.js	Tue Aug 13 12:36:02 2013 +0200
@@ -8,6 +8,12 @@
         displayField: 'bezeichnung',
         valueField: 'ortId',
         emptyText:'Wählen Sie einen Ort',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Probenart.js
--- a/app/view/widgets/Probenart.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Probenart.js	Tue Aug 13 12:36:02 2013 +0200
@@ -22,6 +22,12 @@
         displayField:'probenart',
         valueField: 'probenartId',
         emptyText:'Wählen Sie eine Probenart',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Probenzusatzwert.js
--- a/app/view/widgets/Probenzusatzwert.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Probenzusatzwert.js	Tue Aug 13 12:36:02 2013 +0200
@@ -8,6 +8,12 @@
         displayField: 'beschreibung',
         valueField: 'pzsId',
         emptyText:'Wählen Sie einen Zusatzwert',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Staat.js
--- a/app/view/widgets/Staat.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Staat.js	Tue Aug 13 12:36:02 2013 +0200
@@ -8,6 +8,12 @@
         displayField: 'staat',
         valueField: 'staatId',
         emptyText:'Wählen Sie einen Staat',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Statuswert.js
--- a/app/view/widgets/Statuswert.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Statuswert.js	Tue Aug 13 12:36:02 2013 +0200
@@ -19,6 +19,12 @@
         valueField: 'id',
         typeAhead: true,
         emptyText:'Wählen Sie eine Status',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Uwb.js
--- a/app/view/widgets/Uwb.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Uwb.js	Tue Aug 13 12:36:02 2013 +0200
@@ -26,6 +26,12 @@
         displayField:'umwId',
         valueField: 'umwId',
         emptyText:'Wählen Sie einen Umweltbereich',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
         // TODO: Set value in disply after selection. Can not figure out why
         // accessing the recored.data attribute fails here (ti) <2013-08-06 16:52> 
         //listeners: {
diff -r 0a8fd4c2e7a8 -r 596501c16560 app/view/widgets/Verwaltungseinheit.js
--- a/app/view/widgets/Verwaltungseinheit.js	Tue Aug 13 12:29:56 2013 +0200
+++ b/app/view/widgets/Verwaltungseinheit.js	Tue Aug 13 12:36:02 2013 +0200
@@ -8,6 +8,12 @@
         displayField: 'bezeichnung',
         valueField: 'gemId',
         emptyText:'Wählen Sie eine Verwaltungseinheit',
+        // Enable filtering of comboboxes
+        autoSelect: false,
+        queryMode: 'local',
+        triggerAction : 'all',
+        typeAhead: true,
+        minChars: 0,
     initComponent: function() {
         this.callParent(arguments);
     }


More information about the Lada-commits mailing list