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@337: /** torsten@337: * Store for Messgroessen torsten@337: */ torsten@182: Ext.define('Lada.store.Messgroessen', { torsten@182: extend: 'Ext.data.Store', raimund@445: fields: ['messgroesseId', 'messgroesse'], torsten@260: sorters: [{ raimund@445: property: 'messgroesse', torsten@260: transform: function(val) { torsten@260: if (val) { torsten@260: return val.toLowerCase(); torsten@260: } else { torsten@260: return ""; torsten@260: }; torsten@260: } torsten@260: }], torsten@182: autoLoad: true, torsten@182: proxy: { torsten@182: type: 'ajax', torsten@182: api: { torsten@182: read: 'server/rest/messgroesse' torsten@182: }, torsten@182: reader: { torsten@182: type: 'json', torsten@182: root: 'data' torsten@182: } torsten@182: } torsten@182: });