Mercurial > lada > lada-client
comparison app/view/widget/OrtszuordnungTyp.js @ 1338:d2f06ce4d43a
Use service and widget instead of local store for OrtszuordnungTyp.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 18:01:25 +0100 |
parents | |
children | 1a2cd9bef6d7 |
comparison
equal
deleted
inserted
replaced
1337:7194964183f4 | 1338:d2f06ce4d43a |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
8 | |
9 /** | |
10 * Combobox for type of Ortszuordnung | |
11 */ | |
12 Ext.define('Lada.view.widget.OrtszuordnungTyp' ,{ | |
13 extend: 'Lada.view.widget.base.ComboBox', | |
14 alias: 'widget.ortszuordnungtyp', | |
15 store: 'OrtszuordnungTyp', | |
16 displayField: 'ortstyp', | |
17 valueField: 'id', | |
18 editable: this.editable || false, | |
19 forceSelection: true, | |
20 // Enable filtering of comboboxes | |
21 autoSelect: false, | |
22 queryMode: 'local', | |
23 triggerAction: 'all', | |
24 typeAhead: false, | |
25 minChars: 0, | |
26 | |
27 initComponent: function() { | |
28 var i18n = Lada.getApplication().bundle; | |
29 this.emptyText = i18n.getMsg('emptytext.ortszuordnungtyp'); | |
30 | |
31 this.store = Ext.data.StoreManager.get('ortszuordnungtyp'); | |
32 if (!this.store) { | |
33 this.store = Ext.create('Lada.store.OrtszuordnungTyp'); | |
34 } | |
35 this.store.sort(); | |
36 this.callParent(arguments); | |
37 } | |
38 }); |