annotate app/store/Queries.js @ 242:c8c53f162a22

Iteratre the available cols in reverse order (begining from 0) to maintain the configured order of fields.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 23 Jul 2013 11:43:16 +0200
parents 910cd477bfda
children 331c77afdbcb
rev   line source
240
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
1 /*
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
2 * The following fields are avalailable to show in the search result. Please
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
3 * Define which columns should be visible in whioch order in the fields
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
4 * variable for each query.
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
5 *
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
6 'datenbasisId'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
7 'mplId'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
8 'umwId'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
9 'messmethode'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
10 'hauptprobenNr'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
11 'nebenprobenNr'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
12 'bezeichnung'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
13 'kreis'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
14 'probeId'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
15 'mstId'
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
16 */
910cd477bfda Added a comment with a list of currently available columns.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
17
235
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 Ext.define('Lada.store.Queries', {
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 extend: 'Ext.data.Store',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 model: 'Lada.model.Query',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 data : [
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 {
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 'id': '1',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 'name': 'MST, UWB',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 'description': 'Beschreibung der MST, UWB Abfrage',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 'sql': 'select * from xxx',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 'fields': []
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 },
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 {
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 'id': '2',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 'name': 'Rbegin',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 'description': 'Beschreibung der Rbegin Abfrage',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
33 'sql': 'select * from xxx',
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
34 'fields': []
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 }
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 ],
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 });

http://lada.wald.intevation.org