Mercurial > lada > lada-client
diff app/view/orte/List.js @ 459:487ae31f4c5d
Added new Field Gemeindename
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 18 Dec 2013 11:47:13 +0100 |
parents | 29e325b91f47 |
children | debfcc7713e3 |
line wrap: on
line diff
--- a/app/view/orte/List.js Wed Dec 18 11:47:00 2013 +0100 +++ b/app/view/orte/List.js Wed Dec 18 11:47:13 2013 +0100 @@ -61,13 +61,16 @@ }, { - header: 'Gemeindebezeichnung', + header: 'Gemeindename', dataIndex: 'ortId', flex: 1, renderer: function(value) { var store = Ext.getStore('Ortedetails'); + var gemeinden = Ext.getStore('Verwaltungseinheiten'); var record = store.getById(value); - return record.get('bezeichnung'); + var gemid = record.get('gemId'); + var record2 = gemeinden.findRecord("gemId", gemid); + return record2.get('bezeichnung'); } },