Mercurial > lada > lada-client
comparison app/view/orte/List.js @ 151:a80e84c934a4
Return correct Gemeindebezeichnung
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 02 Jul 2013 10:42:36 +0200 |
parents | 26ac4c99f8c4 |
children | 30aae7295cd0 |
comparison
equal
deleted
inserted
replaced
150:13869814cdb8 | 151:a80e84c934a4 |
---|---|
61 header: 'Gemeindebezeichnung', | 61 header: 'Gemeindebezeichnung', |
62 dataIndex: 'ortId', | 62 dataIndex: 'ortId', |
63 flex: 1, | 63 flex: 1, |
64 renderer: function(value) { | 64 renderer: function(value) { |
65 var store = Ext.getStore('Ortedetails'); | 65 var store = Ext.getStore('Ortedetails'); |
66 var record = store.getById(value); | 66 var gemeinde = Ext.getStore('Verwaltungseinheiten'); |
67 return record.get('beschreibung'); | 67 var record = gemeinde.findRecord('gemId', store.getById(value).get('gemId')); |
68 return record.get('bezeichnung'); | |
68 } | 69 } |
69 | 70 |
70 }, | 71 }, |
71 { | 72 { |
72 header: 'Messpunkt', | 73 header: 'Messpunkt', |