comparison app/view/orte/List.js @ 424:9c44ce52a33c

Fix rendering of the orte list. Some fields was not shown because of wrong loading of ortedetails
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 08 Nov 2013 09:58:54 +0100
parents d1bb925bb5f5
children 683b8a3010cc
comparison
equal deleted inserted replaced
418:957a4a9fd260 424:9c44ce52a33c
35 } 35 }
36 ]; 36 ];
37 this.columns = [ 37 this.columns = [
38 { 38 {
39 header: 'Typ', 39 header: 'Typ',
40 dataIndex: 'ortsTyp' 40 dataIndex: 'ortId',
41 renderer: function(value) {
42 var store = Ext.getStore('Ortedetails');
43 var record = store.getById(value);
44 return record.get('otyp');
45 }
41 }, 46 },
42 { 47 {
43 header: 'Staat', 48 header: 'Staat',
44 dataIndex: 'ortId', 49 dataIndex: 'ortId',
45 renderer: function(value) { 50 renderer: function(value) {
64 header: 'Gemeindebezeichnung', 69 header: 'Gemeindebezeichnung',
65 dataIndex: 'ortId', 70 dataIndex: 'ortId',
66 flex: 1, 71 flex: 1,
67 renderer: function(value) { 72 renderer: function(value) {
68 var store = Ext.getStore('Ortedetails'); 73 var store = Ext.getStore('Ortedetails');
69 var gemeinde = Ext.getStore('Verwaltungseinheiten'); 74 var record = store.getById(value);
70 var record = gemeinde.findRecord('gemId', store.getById(value).get('gemId'));
71 return record.get('bezeichnung'); 75 return record.get('bezeichnung');
72 } 76 }
73 77
74 }, 78 },
75 { 79 {

http://lada.wald.intevation.org