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@178: var mmtStore = Ext.create('Ext.data.Store', { raimund@445: fields: ['mmtId', 'messmethode'], torsten@260: sorters: [{ rrenkert@422: property: 'mmtId' torsten@260: }], torsten@367: autoLoad: true, torsten@178: proxy: { torsten@178: type: 'ajax', torsten@178: api: { torsten@178: read: 'server/rest/messmethode' torsten@178: }, torsten@178: reader: { torsten@178: type: 'json', torsten@178: root: 'data' torsten@178: } torsten@178: } torsten@178: }); torsten@178: torsten@352: /** torsten@352: * Combobox for Messmethode torsten@352: */ torsten@178: Ext.define('Lada.view.widgets.Messmethode' ,{ raimund@445: tpl: '
{mmtId} - {messmethode}
', torsten@178: extend: 'Ext.form.ComboBox', torsten@178: alias: 'widget.messmethode', torsten@178: store: mmtStore, raimund@445: displayField:'messmethode', torsten@178: valueField: 'mmtId', torsten@178: emptyText:'Wählen Sie eine Messmethode', 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@178: initComponent: function() { torsten@178: this.callParent(arguments); torsten@178: } torsten@178: });