Mercurial > lada > lada-client
comparison app/view/widgets/Messmethode.js @ 531:7fb335bf6799
Fixed messmethode combobox display value.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 17 Dec 2014 11:34:43 +0100 |
parents | c1b77fb96b01 |
children |
comparison
equal
deleted
inserted
replaced
530:95bad130be98 | 531:7fb335bf6799 |
---|---|
11 */ | 11 */ |
12 Ext.define('Lada.view.widgets.Messmethode', { | 12 Ext.define('Lada.view.widgets.Messmethode', { |
13 extend: 'Ext.form.ComboBox', | 13 extend: 'Ext.form.ComboBox', |
14 alias: 'widget.messmethode', | 14 alias: 'widget.messmethode', |
15 store: 'StaMessmethoden', | 15 store: 'StaMessmethoden', |
16 displayField: 'messmethode', | 16 displayField: 'display', |
17 valueField: 'id', | 17 valueField: 'id', |
18 emptyText: 'Wählen Sie eine Messmethode', | 18 emptyText: 'Wählen Sie eine Messmethode', |
19 // Enable filtering of comboboxes | 19 // Enable filtering of comboboxes |
20 autoSelect: false, | 20 autoSelect: false, |
21 queryMode: 'local', | 21 queryMode: 'local', |
22 triggerAction: 'all', | 22 triggerAction: 'all', |
23 typeAhead: false, | 23 typeAhead: true, |
24 minChars: 0, | 24 minChars: 0, |
25 tpl: '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' + | |
26 '{id} - {messmethode}</div></tpl>', | |
27 | 25 |
28 initComponent: function() { | 26 initComponent: function() { |
29 this.store = Ext.data.StoreManager.get('staMessmethoden'); | 27 this.store = Ext.data.StoreManager.get('staMessmethoden'); |
30 if (!this.store) { | 28 if (!this.store) { |
31 this.store = Ext.create('Lada.store.StaMessmethoden'); | 29 this.store = Ext.create('Lada.store.StaMessmethoden'); |