[Lada-commits] [PATCH] Load messgroessen with messmethode filter

Wald Commits scm-commit at wald.intevation.org
Wed Jul 8 09:33:57 CEST 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1436340805 -7200
# Node ID 613ad3263e59dfd00aa108fc68a0904eed781b06
# Parent  1449d58d6f58bff63bf1e89416b7f7b344f9f4fa
Load messgroessen with messmethode filter.

diff -r 1449d58d6f58 -r 613ad3263e59 app/view/grid/Messwert.js
--- a/app/view/grid/Messwert.js	Tue Jul 07 13:01:35 2015 +0200
+++ b/app/view/grid/Messwert.js	Wed Jul 08 09:33:25 2015 +0200
@@ -29,6 +29,7 @@
     recordId: null,
     readOnly: true,
     allowDeselect: true,
+    messgroesseStore: null,
 
     initComponent: function() {
         this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
@@ -49,8 +50,8 @@
                     return true;
                 }
             }
-         });
-
+        });
+        var me = this;
         this.plugins = [this.rowEditing];
 
         this.dockedItems = [{
@@ -81,7 +82,7 @@
             },
             editor: {
                 xtype: 'combobox',
-                store: Ext.data.StoreManager.get('messgroessen'),
+                store: me.messgroesseStore,
                 displayField: 'messgroesse',
                 valueField: 'id',
                 allowBlank: false,
diff -r 1449d58d6f58 -r 613ad3263e59 app/view/window/MessungEdit.js
--- a/app/view/window/MessungEdit.js	Tue Jul 07 13:01:35 2015 +0200
+++ b/app/view/window/MessungEdit.js	Wed Jul 08 09:33:25 2015 +0200
@@ -63,6 +63,10 @@
         this.width = 700;
         this.height = Ext.getBody().getViewSize().height - 30;
 
+        var mStore = Ext.data.StoreManager.get('messgroessen');
+        mStore.proxy.extraParams = {mmtId: this.record.get('mmtId')};
+        mStore.load();
+
         this.items = [{
             border: 0,
             autoScroll: true,
@@ -78,7 +82,8 @@
                 margin: 5,
                 items: [{
                     xtype: 'messwertgrid',
-                    recordId: this.record.get('id')
+                    recordId: this.record.get('id'),
+                    messgroesseStore: mStore
                 }]
             }, {
                 xtype: 'fset',


More information about the Lada-commits mailing list