Mercurial > lada > lada-client
annotate app/model/Query.js @ 467:fa2a7a37a248
Set versions in about dialog to 1.0 for client and server.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 14 Jan 2014 12:28:49 +0100 |
parents | f9bb1ecf6462 |
children | debfcc7713e3 |
rev | line source |
---|---|
320
bc87e080ad05
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
306
diff
changeset
|
1 /** |
bc87e080ad05
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
306
diff
changeset
|
2 * Model class for SQL-Querys |
bc87e080ad05
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
306
diff
changeset
|
3 */ |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 Ext.define('Lada.model.Query', { |
333
6964cd97d35f
Inherit form model.base. Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
320
diff
changeset
|
5 extend: 'Lada.model.Base', |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 fields: [ |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 {name: "id"}, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 {name: "name"}, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 {name: "description"}, |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 {name: "sql"}, |
248
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
11 {name: "results"}, |
422
f9bb1ecf6462
Removed trailing commas.
Raimund Renkert <rrenkert@intevation.de>
parents:
333
diff
changeset
|
12 {name: "filters"} |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 ], |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 proxy: { |
248
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
15 type: 'rest', |
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
16 url: 'server/rest/query', |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 reader: { |
248
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
18 type: 'json', |
d40a552382a3
Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
244
diff
changeset
|
19 root: 'data' |
235
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 } |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 } |
78134e20e62d
Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 }); |