raimund@548: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
raimund@548:  * Software engineering by Intevation GmbH
raimund@548:  *
raimund@548:  * This file is Free Software under the GNU GPL (v>=3)
raimund@548:  * and comes with ABSOLUTELY NO WARRANTY! Check out
raimund@548:  * the documentation coming with IMIS-Labordaten-Application for details.
raimund@548:  */
raimund@548: 
dustin@611: 
dustin@740: var testdatensatzStore = Ext.create('Ext.data.Store', {
dustin@740:     fields: ['testdatensatzId', 'testdatensatz'],
dustin@740:     storeId: 'testdatensatzStore',
dustin@740:     data: [{
dustin@740:         'testdatensatzId': true,
dustin@740:         'testdatensatz': 'Ja'
dustin@740:     }, {
dustin@740:         'testdatensatzId': false,
dustin@740:         'testdatensatz': 'Nein'
dustin@740:     }]
dustin@740: });
raimund@548: 
raimund@548: /**
raimund@548:  * Combobox for Testdatensatz.
raimund@548:  * This widget is also used a generic "Ja/Nein" combobox.
raimund@548:  */
raimund@548: Ext.define('Lada.view.widget.Testdatensatz', {
raimund@548:     extend: 'Lada.view.widget.base.ComboBox',
raimund@548:     alias: 'widget.testdatensatz',
dustin@740:     store: 'testdatensatzStore',
raimund@548:     queryMode: 'local',
dustin@740:     triggerAction: 'all',
dustin@740:     typeAhead: false,
dustin@740:     minChars: 0,
dustin@740: 
raimund@548:     displayField: 'testdatensatz',
raimund@548:     valueField: 'testdatensatzId',
raimund@548:     emptyText: 'Testdatensatz?',
raimund@548: 
raimund@548:     initComponent: function() {
dustin@740:         this.store = Ext.data.StoreManager.get('testdatensatzStore')
dustin@740:         this.store.clearFilter();
raimund@548:         this.callParent(arguments);
raimund@548:     }
raimund@548: });