Mercurial > lada > lada-client
annotate app/store/Proben.js @ 18:9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
which is currently just a dummy file to make to request work. But currently no
data is actually saved. The urls need to be replaced with the correct urls in
the application backend.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 06 May 2013 16:41:39 +0200 |
parents | c0b2faa47ee5 |
children | 764a0aef0f56 |
rev | line source |
---|---|
13
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.store.Proben', { |
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Ext.data.Store', |
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 fields: ['probeId', 'datenbasisId'], |
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 model: 'Lada.model.Probe', |
14
c0b2faa47ee5
Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
5 autoLoad: true, |
c0b2faa47ee5
Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
6 proxy: { |
c0b2faa47ee5
Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
7 type: 'ajax', |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
14
diff
changeset
|
8 api: { |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
14
diff
changeset
|
9 read: 'data/proben.json', |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
14
diff
changeset
|
10 update: 'data/proben2.json' |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
14
diff
changeset
|
11 }, |
14
c0b2faa47ee5
Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
12 reader: { |
c0b2faa47ee5
Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
13 type: 'json', |
c0b2faa47ee5
Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
14 root: 'proben' |
c0b2faa47ee5
Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
15 } |
c0b2faa47ee5
Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
16 } |
13
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 }); |
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 |