annotate app/store/Messgroessen.js @ 413:e1af66012ef0 0.6

Reverse displayFields Array before configuring the columns of the result list. Now the displayed columns are in the same order as defined in the query configuration file.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 23 Sep 2013 14:26:09 +0200
parents 39297b8e5ba2
children a122424f2f0f
rev   line source
337
39297b8e5ba2 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 260
diff changeset
1 /**
39297b8e5ba2 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 260
diff changeset
2 * Store for Messgroessen
39297b8e5ba2 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 260
diff changeset
3 */
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 Ext.define('Lada.store.Messgroessen', {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 extend: 'Ext.data.Store',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 fields: ['messgroesseId', 'messgro0esse'],
260
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
7 sorters: [{
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
8 property: 'messgro0esse',
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
9 transform: function(val) {
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
10 if (val) {
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
11 return val.toLowerCase();
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
12 } else {
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
13 return "";
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
14 };
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
15 }
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 182
diff changeset
16 }],
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 autoLoad: true,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 proxy: {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 type: 'ajax',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 api: {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 read: 'server/rest/messgroesse'
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 },
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 reader: {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 type: 'json',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 root: 'data'
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 });

http://lada.wald.intevation.org