raimund@548: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz raimund@548: * Software engineering by Intevation GmbH raimund@548: * raimund@548: * This file is Free Software under the GNU GPL (v>=3) raimund@548: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@548: * the documentation coming with IMIS-Labordaten-Application for details. raimund@548: */ raimund@548: raimund@548: /** raimund@548: * Store for Messgroessen raimund@548: */ raimund@548: Ext.define('Lada.store.Messgroessen', { raimund@548: extend: 'Ext.data.Store', raimund@548: model: 'Lada.model.Messgroesse', raimund@548: sorters: [{ raimund@548: property: 'messgroesse', dustin@739: direction: 'ASC', raimund@548: transform: function(val) { raimund@548: if (val) { raimund@548: return val.toLowerCase(); raimund@548: } raimund@548: return ''; raimund@548: } raimund@548: }], dustin@766: autoLoad: true, dustin@766: dustin@766: proxy: { dustin@766: type: 'rest', dustin@999: url: 'lada-server/rest/messgroesse', dustin@766: reader: { dustin@766: type: 'json', dustin@766: root: 'data' dustin@766: } dustin@766: } dustin@766: raimund@548: });