Mercurial > lada > lada-client
comparison app/view/widget/DatensatzErzeuger.js @ 1116:92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Thu, 19 May 2016 14:56:43 +0200 |
parents | 9bcd17f7a0ae |
children | 9c8b5cbb929a |
comparison
equal
deleted
inserted
replaced
1115:6866be10e40c | 1116:92c0fa2f29b0 |
---|---|
13 extend: 'Lada.view.widget.base.ComboBox', | 13 extend: 'Lada.view.widget.base.ComboBox', |
14 alias: 'widget.datensatzerzeuger', | 14 alias: 'widget.datensatzerzeuger', |
15 store: 'datensatzerzeuger', | 15 store: 'datensatzerzeuger', |
16 displayField: 'id', | 16 displayField: 'id', |
17 valueField: 'id', | 17 valueField: 'id', |
18 emptyText: 'Wählen Sie einen Datensatzerzeuger', | |
18 editable: this.editable || false, | 19 editable: this.editable || false, |
19 forceSelection: true, | 20 forceSelection: true, |
20 // Enable filtering of comboboxes | 21 // Enable filtering of comboboxes |
21 autoSelect: false, | 22 autoSelect: false, |
22 queryMode: 'local', | 23 queryMode: 'local', |
23 triggerAction: 'all', | 24 triggerAction: 'all', |
24 typeAhead: false, | 25 typeAhead: false, |
25 minChars: 0, | 26 minChars: 0, |
26 tpl: Ext.create("Ext.XTemplate", | 27 tpl: Ext.create("Ext.XTemplate", |
27 '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' + | 28 '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' + |
28 '{id} - {datensatzErzeuger}</div></tpl>'), | 29 '{daErzeugerId} - {bezeichnung}</div></tpl>'), |
29 displayTpl: Ext.create('Ext.XTemplate', | 30 displayTpl: Ext.create('Ext.XTemplate', |
30 '<tpl for=".">{id} - {datensatzErzeuger}</tpl>'), | 31 '<tpl for=".">{daErzeugerId} - {bezeichnung}</tpl>'), |
31 | 32 |
32 initComponent: function() { | 33 initComponent: function() { |
33 var i18n = Lada.getApplication().bundle; | 34 var i18n = Lada.getApplication().bundle; |
34 this.emptyText = i18n.getMsg('emptytext.datensatzerzeuger'); | 35 this.emptyText = i18n.getMsg('emptytext.datensatzerzeuger'); |
35 | 36 |
36 this.store = Ext.data.StoreManager.get('datensatz_erzeuger'); | 37 this.store = Ext.data.StoreManager.get('datensatzerzeuger'); |
37 if (!this.store) { | 38 if (!this.store) { |
38 this.store = Ext.create('Lada.store.DatensatzErzeuger'); | 39 this.store = Ext.create('Lada.store.DatensatzErzeuger'); |
39 } | 40 } |
40 this.store.sort(); | 41 this.store.sort(); |
41 this.callParent(arguments); | 42 this.callParent(arguments); |