changeset 178:c53f3110852e

Added Messmethode.js
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 04 Jul 2013 11:24:02 +0200
parents 311065a9e6df
children f1f0351b6e2f
files app/view/widgets/Messmethode.js
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/widgets/Messmethode.js	Thu Jul 04 11:24:02 2013 +0200
@@ -0,0 +1,26 @@
+// Combobox for Messmethode
+var mmtStore = Ext.create('Ext.data.Store', {
+    fields: ['mmtId', 'messmethhode'],
+    proxy: {
+        type: 'ajax',
+        api: {
+        read: 'server/rest/messmethode'
+        },
+        reader: {
+            type: 'json',
+            root: 'data'
+        }
+    }
+});
+
+Ext.define('Lada.view.widgets.Messmethode' ,{
+        extend: 'Ext.form.ComboBox',
+        alias: 'widget.messmethode',
+        store: mmtStore,
+        displayField:'messmethhode',
+        valueField: 'mmtId',
+        emptyText:'Wählen Sie eine Messmethode',
+    initComponent: function() {
+        this.callParent(arguments);
+    }
+});

http://lada.wald.intevation.org