torsten@472: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz torsten@472: * Software engineering by Intevation GmbH torsten@472: * torsten@472: * This file is Free Software under the GNU GPL (v>=3) torsten@472: * and comes with ABSOLUTELY NO WARRANTY! Check out torsten@472: * the documentation coming with IMIS-Labordaten-Application for details. torsten@472: */ torsten@472: torsten@198: var statuswerteStore = Ext.create('Ext.data.Store', { torsten@198: fields: ['id', 'status'], torsten@198: data: [ torsten@198: {"id":1, "status":"nicht vergeben"}, torsten@198: {"id":2, "status":"plausibel"}, torsten@198: {"id":3, "status":"nicht repräsentativ"}, torsten@198: {"id":4, "status":"nicht plausibel"} torsten@198: ] torsten@198: }); torsten@198: torsten@352: /** torsten@352: * Combobox for Statuswert torsten@352: */ torsten@198: Ext.define('Lada.view.widgets.Statuswert' ,{ torsten@198: extend: 'Ext.form.ComboBox', torsten@198: alias: 'widget.statuswert', torsten@198: store: statuswerteStore, torsten@198: displayField:'status', torsten@198: valueField: 'id', torsten@481: typeAhead: false, torsten@198: emptyText:'Wählen Sie eine Status', torsten@355: // Enable filtering of comboboxes torsten@355: autoSelect: false, torsten@355: queryMode: 'local', torsten@355: triggerAction : 'all', torsten@481: typeAhead: false, torsten@355: minChars: 0, torsten@198: initComponent: function() { torsten@198: this.callParent(arguments); torsten@198: } torsten@198: });