annotate app/store/Proben.js @ 14:c0b2faa47ee5

Load data from data/proben.json
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 30 Apr 2013 15:06:43 +0200
parents a8efc4b96888
children 9e1a40312bbe
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',
c0b2faa47ee5 Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
8 url: 'data/proben.json',
c0b2faa47ee5 Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
9 reader: {
c0b2faa47ee5 Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
10 type: 'json',
c0b2faa47ee5 Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
11 root: 'proben'
c0b2faa47ee5 Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
12 }
c0b2faa47ee5 Load data from data/proben.json
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
13 }
13
a8efc4b96888 Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 });
a8efc4b96888 Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15

http://lada.wald.intevation.org