Mercurial > lada > lada-client
comparison app/store/Queries.js @ 247:fa108c53da5a
Removed data from store. queries are now loaded from the server.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 24 Jul 2013 14:51:44 +0200 |
parents | 7097182150d9 |
children | 39297b8e5ba2 |
comparison
equal
deleted
inserted
replaced
246:c5d7fae5997a | 247:fa108c53da5a |
---|---|
1 /* | |
2 * The following fields are avalailable to show in the search result. Please | |
3 * Define which columns should be visible in whioch order in the fields | |
4 * variable for each query. | |
5 * | |
6 'datenbasisId' | |
7 'mplId' | |
8 'umwId' | |
9 'messmethode' | |
10 'hauptprobenNr' | |
11 'nebenprobenNr' | |
12 'bezeichnung' | |
13 'kreis' | |
14 'probeId' | |
15 'mstId' | |
16 */ | |
17 | |
18 Ext.define('Lada.store.Queries', { | 1 Ext.define('Lada.store.Queries', { |
19 extend: 'Ext.data.Store', | 2 extend: 'Ext.data.Store', |
20 model: 'Lada.model.Query', | 3 model: 'Lada.model.Query', |
21 data : [ | |
22 { | |
23 'id': '1', | |
24 'name': 'MST, UWB', | |
25 'description': 'Beschreibung der MST, UWB Abfrage', | |
26 'sql': 'select * from xxx', | |
27 /* List of fields which should be displayed in the proben list. | |
28 * The field names must match the fieldnames in returned JSON object. */ | |
29 'fields': ['datenbasisId', 'mplId', 'umwId', 'messmethode', 'hauptprobenNr', 'nebenprobenNr', 'bezeichnung', 'kreis', 'probeId', 'mstId'], | |
30 /* List of filters. The filters must match the fields in the | |
31 * "WHERE" part of the defined SQL query. */ | |
32 'filters': ['mstId', 'umwId'], | |
33 }, | |
34 { | |
35 'id': '2', | |
36 'name': 'Rbegin', | |
37 'description': 'Beschreibung der Rbegin Abfrage', | |
38 'sql': 'select * from xxx', | |
39 'fields': ['mplId', 'datenbasisId', 'umwId', 'messmethode', 'hauptprobenNr', 'nebenprobenNr', 'bezeichnung', 'kreis', 'probeId', 'mstId'], | |
40 'filters': [], | |
41 } | |
42 ], | |
43 }); | 4 }); |