diff app/view/form/Probe.js @ 1412:dc90e2997071

Merged branch release-2.5 into default.
author Tom Gottfried <tom@intevation.de>
date Mon, 27 Mar 2017 16:50:00 +0200
parents 7e9a6f0e55b3 418b9afee700
children ee21d0e1b998
line wrap: on
line diff
--- a/app/view/form/Probe.js	Wed Mar 22 16:28:22 2017 +0100
+++ b/app/view/form/Probe.js	Mon Mar 27 16:50:00 2017 +0200
@@ -112,6 +112,7 @@
                                             var labor = newValue[0].get('laborMst');
                                             combo.up('fieldset').down('messstelle[name=mstId]').setValue(mst);
                                             combo.up('fieldset').down('messstelle[name=laborMstId]').setValue(labor);
+                                            combo.up('fieldset').down('messprogrammland[name=mplId]').setValue();
                                         }
                                     }
                                 }
@@ -137,6 +138,7 @@
                                 hidden: true
                             }, {
                                 xtype: 'netzbetreiber',
+                                name: 'netzbetreiber',
                                 editable: false,
                                 readOnly: true,
                                 isFormField: false,
@@ -227,7 +229,15 @@
                             margin: '0, 5, 5, 5',
                             width: '100%',
                             anchor: '100%',
-                            labelWidth: 110
+                            labelWidth: 110,
+                            listeners: {
+                                expand : {
+                                    fn: function(combo) {
+                                       Ext.StoreManager.get('messprogrammkategorie').clearFilter();
+                                       Ext.StoreManager.get('messprogrammkategorie').filter('netzbetreiberId', combo.up('fieldset').down('netzbetreiber[name=netzbetreiber]').getValue());
+                                    }
+                                }
+                            }
                         }]
                 }, {
                     // Zeit

http://lada.wald.intevation.org