Mercurial > lada > lada-client
comparison app/controller/ProbenPlanungSwitcher.js @ 751:704bb359c0fe
dynamically exchange the store of the resultfiltergrid
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 28 Apr 2015 16:03:59 +0200 |
parents | 561ade69980e |
children | 639e82e2089e |
comparison
equal
deleted
inserted
replaced
750:561ade69980e | 751:704bb359c0fe |
---|---|
41 switchStores: function(field) { | 41 switchStores: function(field) { |
42 var cbox = field.up('probenplanungswitcher').up().down('combobox'); | 42 var cbox = field.up('probenplanungswitcher').up().down('combobox'); |
43 var resultGrid = field.up('panel[name=main]').down('filterresultgrid'); | 43 var resultGrid = field.up('panel[name=main]').down('filterresultgrid'); |
44 | 44 |
45 var sname = 'Lada.store.ProbeQueries'; | 45 var sname = 'Lada.store.ProbeQueries'; |
46 if (field.inputValue === 'probenplanung' && cbox) { | 46 if (field.inputValue === 'MessprogrammeList' && cbox) { |
47 sname = 'Lada.store.MessprogrammQueries'; | 47 sname = 'Lada.store.MessprogrammQueries'; |
48 } | 48 } |
49 else if (field.inputValue === 'probenliste' && cbox) { | 49 else if (field.inputValue === 'ProbenList' && cbox) { |
50 sname = 'Lada.store.ProbeQueries'; | 50 sname = 'Lada.store.ProbeQueries'; |
51 } | 51 } |
52 | 52 |
53 var store = Ext.StoreManager.lookup(sname); | 53 var store = Ext.StoreManager.lookup(sname); |
54 if (!store) { | 54 if (!store) { |