annotate app/store/Betriebsart.js @ 93:ab067fdb91b5

Set root of the data element to "data". This was needed as the Response of the server changed.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 13 Jun 2013 11:04:11 +0200
parents 39f5f1529847
children
rev   line source
46
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 Ext.define('Lada.store.Betriebsart', {
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 extend: 'Ext.data.Store',
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 fields: ['betriebsartId', 'betriebsart'],
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 autoLoad: true,
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 // This might be implemented later. Table in database is missing.
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 //proxy: {
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 // type: 'ajax',
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 // api: {
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 // read: 'server/rest/probenart'
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 // },
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 // reader: {
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 // type: 'json'
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 // }
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 //}
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 data: [
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 {"betriebsartId":"1", "betriebsart":"Normal-/Routinebtrieb"},
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 {"betriebsartId":"2", "betriebsart":"Störfall/Intensivbetrieb"}
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 ]
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 });
39f5f1529847 Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20

http://lada.wald.intevation.org