diff 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
line wrap: on
line diff
--- a/app/store/Proben.js	Tue Apr 30 12:34:36 2013 +0200
+++ b/app/store/Proben.js	Tue Apr 30 15:06:43 2013 +0200
@@ -2,6 +2,14 @@
     extend: 'Ext.data.Store',
     fields: ['probeId', 'datenbasisId'],
     model: 'Lada.model.Probe',
-    data  : []
+    autoLoad: true,
+    proxy: {
+        type: 'ajax',
+        url: 'data/proben.json',
+        reader: {
+            type: 'json',
+            root: 'proben'
+        }
+    }
 });
 

http://lada.wald.intevation.org