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@355: typeAhead: true, torsten@355: minChars: 0, torsten@40: initComponent: function() { torsten@40: this.callParent(arguments); torsten@40: } torsten@40: });