comparison app/view/widget/MessprogrammLand.js @ 1107:9bcd17f7a0ae

change some fields in probeform to combobox
author Michael Stanko <mstanko@bfs.de>
date Thu, 12 May 2016 16:03:04 +0200
parents
children 92c0fa2f29b0
comparison
equal deleted inserted replaced
1106:ecce10cf32dc 1107:9bcd17f7a0ae
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 MessprogrammLand
11 */
12 Ext.define('Lada.view.widget.MessprogrammLand', {
13 extend: 'Lada.view.widget.base.ComboBox',
14 alias: 'widget.messprogrammland',
15 store: 'messprogrammkategorie',
16 displayField: 'display',
17 valueField: 'id',
18 emptyText: 'Wählen Sie eine Landesmessprogramm',
19 // Enable filtering of comboboxes
20 queryMode: 'local',
21 triggerAction: 'all',
22 typeAhead: true,
23 minChars: 0,
24 layout: 'hbox',
25
26 initComponent: function() {
27 this.store = Ext.data.StoreManager.get('messprogrammkategorie');
28 if (!this.store) {
29 this.store = Ext.create('Lada.store.MessprogrammKategorie');
30 }
31 else {
32 this.store.clearFilter();
33 }
34 this.callParent(arguments);
35 }
36 });

http://lada.wald.intevation.org