raimund@1066: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz raimund@1066: * Software engineering by Intevation GmbH raimund@1066: * raimund@1066: * This file is Free Software under the GNU GPL (v>=3) raimund@1066: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@1066: * the documentation coming with IMIS-Labordaten-Application for details. raimund@1066: */ raimund@1066: raimund@1066: /** raimund@1083: * Combobox for Messstelle/Labor raimund@1066: */ raimund@1066: Ext.define('Lada.view.widget.MessstelleLabor', { raimund@1066: extend: 'Lada.view.widget.base.ComboBox', raimund@1066: alias: 'widget.messstellelabor', raimund@1066: store: 'MessstelleLabor', raimund@1066: displayField: 'displayCombi', raimund@1066: valueField: 'id', raimund@1066: editable: this.editable || false, raimund@1066: forceSelection: true, raimund@1066: emptyText: 'Wählen Sie eine Kombination', raimund@1066: // Enable filtering of comboboxes raimund@1066: autoSelect: true, raimund@1066: queryMode: 'local', raimund@1066: triggerAction: 'all', raimund@1066: typeAhead: false, raimund@1066: minChars: 0, raimund@1066: raimund@1066: initComponent: function() { raimund@1066: this.store = Ext.data.StoreManager.get('messstellelabor'); raimund@1066: this.callParent(arguments); raimund@1066: this.down('combobox').isFormField = false; raimund@1066: } raimund@1066: });