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 datenbasisStore = Ext.create('Ext.data.Store', { torsten@121: fields: ['datenbasisId', 'beschreibung', 'datenbasis'], torsten@260: sorters: [{ rrenkert@422: property: 'datenbasis' torsten@260: }], torsten@367: autoLoad: true, torsten@121: proxy: { torsten@121: type: 'ajax', torsten@121: api: { torsten@121: read: 'server/rest/datenbasis' 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 Datenbasis torsten@352: */ torsten@41: Ext.define('Lada.view.widgets.Datenbasis' ,{ torsten@41: extend: 'Ext.form.ComboBox', torsten@41: alias: 'widget.datenbasis', torsten@121: store: datenbasisStore, torsten@41: displayField:'datenbasis', torsten@41: valueField: 'datenbasisId', torsten@41: emptyText:'Wählen Sie eine Datenbasis', torsten@355: // Enable filtering of comboboxes torsten@355: autoSelect: false, torsten@355: queryMode: 'local', torsten@355: triggerAction : 'all', torsten@355: typeAhead: true, torsten@355: minChars: 0, torsten@41: initComponent: function() { torsten@41: this.callParent(arguments); torsten@41: } torsten@41: });