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@121: var probenartStore = Ext.create('Ext.data.Store', { torsten@121: fields: ['probenartId', 'probenart'], torsten@367: autoLoad: true, torsten@121: proxy: { torsten@121: type: 'ajax', torsten@121: api: { torsten@121: read: 'server/rest/probenart' torsten@121: }, torsten@121: reader: { torsten@121: type: 'json', torsten@121: root: 'data' torsten@121: } torsten@121: } torsten@121: }); torsten@121: torsten@352: /** torsten@352: * Combobox for Probenart torsten@352: */ torsten@40: Ext.define('Lada.view.widgets.Probenart' ,{ torsten@40: extend: 'Ext.form.ComboBox', torsten@40: alias: 'widget.probenart', torsten@121: store: probenartStore, torsten@40: displayField:'probenart', torsten@40: valueField: 'probenartId', torsten@40: emptyText:'Wählen Sie eine Probenart', 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@40: initComponent: function() { torsten@40: this.callParent(arguments); torsten@40: } torsten@40: });