comparison app/view/form/Messung.js @ 958:5d57c6c53e20

Made the grids more robust against erroneous data
author Dustin Demuth <dustin@intevation.de>
date Tue, 10 Nov 2015 09:50:06 +0100
parents 881984972e0e
children 73b397d8dd3a
comparison
equal deleted inserted replaced
957:881984972e0e 958:5d57c6c53e20
191 191
192 /** 192 /**
193 * Updates the Messungform and fills the Statuswert 193 * Updates the Messungform and fills the Statuswert
194 */ 194 */
195 setStatusWert: function(value){ 195 setStatusWert: function(value){
196 var swStore = Ext.StoreManager.lookup('StatusWerte'); 196 var swStore = Ext.create('Lada.store.StatusWerte');
197 if (!swStore) {
198 var swStore = Ext.create('Lada.store.StatusWerte');
199 }
200 swStore.load({ 197 swStore.load({
201 scope: this, 198 scope: this,
202 callback: function(records, operation, success) { 199 callback: function(records, operation, success) {
203 var i18n = Lada.getApplication().bundle; 200 var i18n = Lada.getApplication().bundle;
204 var msg = i18n.getMsg('load.statuswert.error'); 201 var msg = i18n.getMsg('load.statuswert.error');
216 213
217 /** 214 /**
218 * Updates the Messungform and fills the StatusStufe 215 * Updates the Messungform and fills the StatusStufe
219 */ 216 */
220 setStatusStufe: function(value){ 217 setStatusStufe: function(value){
221 var ssStore = Ext.StoreManager.lookup('StatusStufe'); 218 var ssStore = Ext.create('Lada.store.StatusStufe');
222 if (!ssStore) {
223 var ssStore = Ext.create('Lada.store.StatusStufe');
224 }
225 ssStore.load({ 219 ssStore.load({
226 scope: this, 220 scope: this,
227 callback: function(records, operation, success) { 221 callback: function(records, operation, success) {
228 var i18n = Lada.getApplication().bundle; 222 var i18n = Lada.getApplication().bundle;
229 var msg = i18n.getMsg('load.statusstufe.error'); 223 var msg = i18n.getMsg('load.statusstufe.error');

http://lada.wald.intevation.org