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 raimund@497: * the documentation coming with IMIS-Labordaten-Application for details. torsten@472: */ torsten@472: torsten@121: var testdatensatzStore = Ext.create('Ext.data.Store', { torsten@121: fields: ['testdatensatzId', 'testdatensatz'], raimund@497: data: [{ raimund@497: 'testdatensatzId': true, raimund@497: 'testdatensatz': 'Ja' raimund@497: }, { raimund@497: 'testdatensatzId': false, raimund@497: 'testdatensatz': 'Nein' raimund@497: }] torsten@121: }); torsten@121: torsten@352: /** torsten@352: * Combobox for Testdatensatz. torsten@352: * This widget is also used a generic "Ja/Nein" combobox. torsten@352: */ raimund@497: Ext.define('Lada.view.widgets.Testdatensatz', { raimund@491: extend: 'Ext.form.ComboBox', raimund@491: editable: false, raimund@491: alias: 'widget.testdatensatz', raimund@491: store: testdatensatzStore, raimund@491: queryMode: 'local', raimund@497: displayField: 'testdatensatz', raimund@491: valueField: 'testdatensatzId', raimund@497: emptyText: 'Testdatensatz?', raimund@491: torsten@49: initComponent: function() { torsten@49: this.callParent(arguments); torsten@49: } torsten@49: });