comparison app/view/zusatzwerte/List.js @ 141:1fb79e16149f

Displaye Messeinheit in the Zusatzwerte Overview.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 28 Jun 2013 09:51:41 +0200
parents 00e43c00b7f2
children 8cb393ffe844
comparison
equal deleted inserted replaced
140:00e43c00b7f2 141:1fb79e16149f
64 {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'}, 64 {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'},
65 { 65 {
66 header: 'Maßeinheit', 66 header: 'Maßeinheit',
67 dataIndex: 'pzsId', 67 dataIndex: 'pzsId',
68 renderer: function(value) { 68 renderer: function(value) {
69 var store = Ext.getStore('Probenzusatzwerte'); 69 var zstore = Ext.getStore('Probenzusatzwerte');
70 var record = store.getById(value); 70 var mstore = Ext.getStore('Messeinheit');
71 return record.get('mehId'); 71 var mehId = zstore.getById(value).get('mehId');
72 var record = mstore.findRecord('mehId', mehId);
73 return record.get('einheit');
72 } 74 }
73 } 75 }
74 ]; 76 ];
75 this.callParent(arguments); 77 this.callParent(arguments);
76 } 78 }

http://lada.wald.intevation.org