diff app/model/ProbeList.js @ 374:832e3c8f9191

Implemented dynamic ProbelList model. The model will get initialized by the fields configured in the sql configuration.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 20 Aug 2013 16:50:47 +0200
parents
children debfcc7713e3
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/model/ProbeList.js	Tue Aug 20 16:50:47 2013 +0200
@@ -0,0 +1,20 @@
+/**
+ * A ProbeList.
+ * This class represents the result list of "Proben" in the search query
+ * */
+Ext.define('Lada.model.ProbeList', {
+    extend: 'Lada.model.Base',
+    fields: [
+        {name: "readonly"}
+    ],
+    idProperty: "probeId",
+    proxy: {
+        type: 'rest',
+        appendId: true, //default
+        url: 'server/rest/proben',
+        reader: {
+            type: 'json',
+            root: 'data'
+        }
+    }
+});

http://lada.wald.intevation.org