comparison app/store/Proben.js @ 20:764a0aef0f56

Remove Field configuration. Field are configured in the model.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 07 May 2013 16:27:40 +0200
parents 9e1a40312bbe
children 72778ac34dbb
comparison
equal deleted inserted replaced
19:a05625ae08b1 20:764a0aef0f56
1 Ext.define('Lada.store.Proben', { 1 Ext.define('Lada.store.Proben', {
2 extend: 'Ext.data.Store', 2 extend: 'Ext.data.Store',
3 fields: ['probeId', 'datenbasisId'],
4 model: 'Lada.model.Probe', 3 model: 'Lada.model.Probe',
5 autoLoad: true, 4 autoLoad: true,
6 proxy: { 5 proxy: {
7 type: 'ajax', 6 type: 'ajax',
8 api: { 7 api: {
9 read: 'data/proben.json', 8 read: 'server/rest/proben',
9 //read: 'data/proben.json',
10 update: 'data/proben2.json' 10 update: 'data/proben2.json'
11 }, 11 },
12 reader: { 12 reader: {
13 type: 'json', 13 type: 'json',
14 root: 'proben' 14 contentType: "application/json; charset=utf-8;"
15 } 15 }
16 } 16 }
17 }); 17 });
18 18

http://lada.wald.intevation.org