Mercurial > lada > lada-client
diff app/view/form/Probe.js @ 1396:418b9afee700 release-2.5
changed MessprogrammKategorie pageSize and added filter for combo dependent on selected messstelle in probeform and messprogrammform
author | Evi Huber <ehuber@bfs.de> |
---|---|
date | Wed, 15 Mar 2017 09:56:44 +0100 |
parents | 59c1f162fe8f |
children | dc90e2997071 |
line wrap: on
line diff
--- a/app/view/form/Probe.js Mon Feb 27 11:56:41 2017 +0100 +++ b/app/view/form/Probe.js Wed Mar 15 09:56:44 2017 +0100 @@ -106,6 +106,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(); } } } @@ -131,6 +132,7 @@ hidden: true }, { xtype: 'netzbetreiber', + name: 'netzbetreiber', editable: false, readOnly: true, isFormField: false, @@ -221,7 +223,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