comparison app/view/grid/PKommentar.js @ 959:841196768e86

Made kommentare-grids more robust
author Dustin Demuth <dustin@intevation.de>
date Tue, 10 Nov 2015 10:53:06 +0100
parents 0a233865a9c3
children 6e67eb947258
comparison
equal deleted inserted replaced
958:5d57c6c53e20 959:841196768e86
73 }, { 73 }, {
74 header: 'Erzeuger', 74 header: 'Erzeuger',
75 dataIndex: 'erzeuger', 75 dataIndex: 'erzeuger',
76 width: 140, 76 width: 140,
77 renderer: function(value) { 77 renderer: function(value) {
78 var r = '';
78 if (!value || value === '') { 79 if (!value || value === '') {
79 return ''; 80 r = 'Error';
80 } 81 }
81 var store = Ext.data.StoreManager.get('messstellen'); 82 var store = Ext.data.StoreManager.get('messstellen');
82 var record = store.getById(value); 83 var record = store.getById(value);
83 return record.get('messStelle'); 84 if (record) {
85 r = record.get('messStelle');
86 }
87 return r;
84 }, 88 },
85 editor: { 89 editor: {
86 xtype: 'combobox', 90 xtype: 'combobox',
87 store: Ext.data.StoreManager.get('messstellen'), 91 store: Ext.data.StoreManager.get('messstellen'),
88 displayField: 'messStelle', 92 displayField: 'messStelle',

http://lada.wald.intevation.org