comparison app/view/grid/Ortszuordnung.js @ 1346:8742d020c685

Get kta code to display the correct value in ortszuordnung grid.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 06 Feb 2017 12:02:37 +0100
parents 1a2cd9bef6d7
children c05a5534f0d9
comparison
equal deleted inserted replaced
1345:da98f0e7c288 1346:8742d020c685
147 var store = Ext.data.StoreManager.get('orte'); 147 var store = Ext.data.StoreManager.get('orte');
148 var record = store.getById(value); 148 var record = store.getById(value);
149 if (!record || record.get('anlageId') === '') { 149 if (!record || record.get('anlageId') === '') {
150 return ''; 150 return '';
151 } 151 }
152 return record.get('anlageId'); 152 var ktas = Ext.data.StoreManager.get('ktas');
153 var kta = ktas.getById(record.get('anlageId'));
154 return kta.get('code');
153 } 155 }
154 }]; 156 }];
155 this.listeners = { 157 this.listeners = {
156 select: { 158 select: {
157 fn: this.activateRemoveButton, 159 fn: this.activateRemoveButton,

http://lada.wald.intevation.org