[Lada-commits] [PATCH] Added Messmethode.js

Wald Commits scm-commit at wald.intevation.org
Thu Jul 4 11:25:14 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1372929842 -7200
# Node ID c53f3110852ea4697c88270efe15ecde15f8b742
# Parent  311065a9e6dffd561ecdf6878036b4c54fbcb8d5
Added Messmethode.js

diff -r 311065a9e6df -r c53f3110852e app/view/widgets/Messmethode.js
--- /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);
+    }
+});


More information about the Lada-commits mailing list