comparison app/store/Queries.js @ 244:7097182150d9

Added filter attribute and added comments.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 23 Jul 2013 14:14:45 +0200
parents 331c77afdbcb
children fa108c53da5a
comparison
equal deleted inserted replaced
243:331c77afdbcb 244:7097182150d9
22 { 22 {
23 'id': '1', 23 'id': '1',
24 'name': 'MST, UWB', 24 'name': 'MST, UWB',
25 'description': 'Beschreibung der MST, UWB Abfrage', 25 'description': 'Beschreibung der MST, UWB Abfrage',
26 'sql': 'select * from xxx', 26 'sql': 'select * from xxx',
27 'fields': ['datenbasisId', 'mplId', 'umwId', 'messmethode', 'hauptprobenNr', 'nebenprobenNr', 'bezeichnung', 'kreis', 'probeId', 'mstId'] 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'],
28 }, 33 },
29 { 34 {
30 'id': '2', 35 'id': '2',
31 'name': 'Rbegin', 36 'name': 'Rbegin',
32 'description': 'Beschreibung der Rbegin Abfrage', 37 'description': 'Beschreibung der Rbegin Abfrage',
33 'sql': 'select * from xxx', 38 'sql': 'select * from xxx',
34 'fields': ['mplId', 'datenbasisId', 'umwId', 'messmethode', 'hauptprobenNr', 'nebenprobenNr', 'bezeichnung', 'kreis', 'probeId', 'mstId'] 39 'fields': ['mplId', 'datenbasisId', 'umwId', 'messmethode', 'hauptprobenNr', 'nebenprobenNr', 'bezeichnung', 'kreis', 'probeId', 'mstId'],
40 'filters': [],
35 } 41 }
36 ], 42 ],
37 }); 43 });

http://lada.wald.intevation.org