dustin@757: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz dustin@757: * Software engineering by Intevation GmbH dustin@757: * dustin@757: * This file is Free Software under the GNU GPL (v>=3) dustin@757: * and comes with ABSOLUTELY NO WARRANTY! Check out dustin@757: * the documentation coming with IMIS-Labordaten-Application for details. dustin@757: */ dustin@757: dustin@757: dustin@757: dustin@757: dustin@757: /** dustin@757: * Combobox for Probenintervall dustin@757: */ dustin@757: Ext.define('Lada.view.widget.Probenintervall', { dustin@757: extend: 'Lada.view.widget.base.ComboBox', dustin@757: alias: 'widget.probenintervall', dustin@757: requires: [ dustin@757: 'Lada.store.Probenintervall' dustin@757: ], dustin@757: store: 'Probenintervall', dustin@757: displayField: 'probenintervall', dustin@757: valueField: 'probenintervall', dustin@757: forceSelection: true, dustin@757: //editable: this.editable || false, dustin@757: // Enable filtering of comboboxes dustin@757: queryMode: 'local', dustin@757: triggerAction: 'all', dustin@757: typeAhead: false, dustin@757: tpl: Ext.create("Ext.XTemplate", dustin@757: '' + dustin@757: '{probenintervall} - {piTexti18nId}'), dustin@757: displayTpl: Ext.create('Ext.XTemplate', dustin@757: '{probenintervall} -'+ dustin@757: '{piTexti18nId}'), dustin@757: dustin@757: initComponent: function() { dustin@757: var i18n = Lada.getApplication().bundle; dustin@757: this.emptyText = i18n.getMsg('emptytext.probenintervall'); dustin@757: dustin@757: this.store = Ext.data.StoreManager.get('Probenintervall'); dustin@757: dustin@757: if (!this.store) { dustin@757: this.store = Ext.create('Lada.store.Probenintervall'); dustin@757: } dustin@757: else { dustin@757: this.store.clearFilter(); dustin@757: } dustin@757: this.callParent(arguments); dustin@757: } dustin@757: });