comparison app/controller/grid/Messwert.js @ 740:2e8da590ea0c

made Comboboces editable and filterable for; Messungenform: Messstelle,Datenbasis,Betriebsarts,Testdatensatz,Preobenart,Netzbetreiber Messungform: Messmethode Messwertegrid: Messgroesse,Messeinheit
author Dustin Demuth <dustin@intevation.de>
date Mon, 20 Apr 2015 16:07:40 +0200
parents efb1369a8cac
children 6e28ebbe1a73
comparison
equal deleted inserted replaced
739:efb1369a8cac 740:2e8da590ea0c
25 }, 25 },
26 26
27 gridSave: function(editor, context) { 27 gridSave: function(editor, context) {
28 context.record.save({ 28 context.record.save({
29 success: function(request, response) { 29 success: function(request, response) {
30 Ext.data.StoreManager.get('messgroessen').clearFilters(); 30 if (Ext.data.StoreManager.get('messeinheiten')) {
31 Ext.data.StoreManager.get('messgroessen').reload(); 31 Ext.data.StoreManager.get('messeinheiten').clearFilter();
32 // If you don't do the reset above, the grid will only contain 32 Ext.data.StoreManager.get('messeinheiten').reload();
33 }
34 if (Ext.data.StoreManager.get('messeinheiten')) {
35 Ext.data.StoreManager.get('messgroessen').clearFilter();
36 Ext.data.StoreManager.get('messgroessen').reload();
37 }
38 // If you don't do the resets above, the grid will only contain
33 // one row in cases in when autocompletion was used! 39 // one row in cases in when autocompletion was used!
34 context.grid.store.reload(); 40 context.grid.store.reload();
35 context.grid.up('window').initData(); 41 context.grid.up('window').initData();
36 }, 42 },
37 failure: function(request, response) { 43 failure: function(request, response) {

http://lada.wald.intevation.org