comparison app/view/window/GenProbenFromMessprogramm.js @ 1233:a1bbfddb77b9

Fix result list from generation of Probe objects. These are adaptations to changes in the server due to the extinction of the schema bund.
author Tom Gottfried <tom@intevation.de>
date Fri, 28 Oct 2016 20:04:20 +0200
parents 9c429e7bf747
children cadd1c113bd0
comparison
equal deleted inserted replaced
1232:9c429e7bf747 1233:a1bbfddb77b9
170 }] 170 }]
171 }); 171 });
172 172
173 var columns = [{ 173 var columns = [{
174 header: i18n.getMsg('prnId'), 174 header: i18n.getMsg('prnId'),
175 dataIndex: 'probeIdAlt' 175 dataIndex: 'idAlt'
176 }, {
177 header: i18n.getMsg('netzbetreiberId'),
178 dataIndex: 'netzbetreiberId',
179 renderer: function(value) {
180 var r = '';
181 if (!value || value === '') {
182 r = 'Error';
183 }
184 var store = Ext.data.StoreManager.get('netzbetreiber');
185 var record = store.getById(value);
186 if (record) {
187 r = record.get('netzbetreiber');
188 }
189 return r;
190 }
191 }, { 176 }, {
192 header: i18n.getMsg('mstId'), 177 header: i18n.getMsg('mstId'),
193 dataIndex: 'mstId', 178 dataIndex: 'mstId',
194 renderer: function(value) { 179 renderer: function(value) {
195 var r = ''; 180 var r = '';

http://lada.wald.intevation.org