[Lada-commits] [PATCH 4 of 4] Added new Field Gemeindename

Wald Commits scm-commit at wald.intevation.org
Wed Dec 18 11:49:20 CET 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1387363633 -3600
# Node ID 487ae31f4c5d2799a8fa3a612d1b1451557ec3de
# Parent  29e325b91f476fc39a6566d7644de86646301aa2
Added new Field Gemeindename

diff -r 29e325b91f47 -r 487ae31f4c5d app/view/orte/List.js
--- 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');
                 }
 
             },


More information about the Lada-commits mailing list