comparison app/view/widgets/Uwb.js @ 261:1375ff0f248d

Issue50. Show ID an text in combobox.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 26 Jul 2013 10:12:58 +0200
parents 70a1b5962930
children 852dc338894e
comparison
equal deleted inserted replaced
260:70a1b5962930 261:1375ff0f248d
1 // Combobox for Umweltbereich 1 // Combobox for Umweltbereich
2 var uwbStore = Ext.create('Ext.data.Store', { 2 var uwbStore = Ext.create('Ext.data.Store', {
3 fields: ['umwId'], 3 fields: ['umwId', 'umweltBereich'],
4 sorters: [{ 4 sorters: [{
5 property: 'umwId', 5 property: 'umwId',
6 }], 6 }],
7 proxy: { 7 proxy: {
8 type: 'ajax', 8 type: 'ajax',
15 } 15 }
16 } 16 }
17 }); 17 });
18 18
19 Ext.define('Lada.view.widgets.Uwb' ,{ 19 Ext.define('Lada.view.widgets.Uwb' ,{
20 tpl: '<tpl for="."><div class="x-combo-list-item" >{umwId} - {umweltBereich}</div></tpl>',
20 extend: 'Ext.form.ComboBox', 21 extend: 'Ext.form.ComboBox',
21 alias: 'widget.uwb', 22 alias: 'widget.uwb',
22 store: uwbStore, 23 store: uwbStore,
23 displayField:'umwId', 24 displayField:'umwId',
24 valueField: 'umwId', 25 valueField: 'umwId',

http://lada.wald.intevation.org