[Lada-commits] [PATCH] Changed ort grid editors from custom to default comboboxes

Wald Commits scm-commit at wald.intevation.org
Fri Feb 3 15:10:03 CET 2017


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1486130964 -3600
# Node ID 35bbbfbe130c5575050f8516cb53e822dcbbee04
# Parent  09d121acda6ca65b56f6739d99fc667bba3b30ac
Changed ort grid editors from custom to default comboboxes.

diff -r 09d121acda6c -r 35bbbfbe130c app/view/grid/Orte.js
--- a/app/view/grid/Orte.js	Fri Feb 03 14:41:47 2017 +0100
+++ b/app/view/grid/Orte.js	Fri Feb 03 15:09:24 2017 +0100
@@ -123,7 +123,10 @@
         }, {
             header: i18n.getMsg('orte.anlageId'),
             editor: {
-                xtype: 'kta'
+                xtype: 'combobox',
+                store: Ext.data.StoreManager.get('ktas'),
+                displayField: 'code',
+                valueField: 'id'
             },
             renderer: function(value) {
                 if (value === undefined ||
@@ -187,8 +190,10 @@
                 type: 'string'
             },
             editor: {
-                xtype: 'koordinatenart',
-                allowBlank: false
+                xtype: 'combobox',
+                store: Ext.data.StoreManager.get('koordinatenart'),
+                displayField: 'koordinatenart',
+                valueField: 'id'
             },
             renderer: function(value) {
                 if (value === undefined || value === '') {
@@ -205,7 +210,10 @@
                 type: 'string'
             },
             editor: {
-                xtype: 'ortszusatz',
+                xtype: 'combobox',
+                store: Ext.data.StoreManager.get('ortszusatz'),
+                displayField: 'ozsId',
+                valueField: 'ozsId'
             },
             renderer: function(value) {
                 if (value === undefined ||
@@ -225,7 +233,10 @@
                 type: 'string'
             },
             editor: {
-                xtype: 'orttyp',
+                xtype: 'combobox',
+                store: Ext.data.StoreManager.get('orttyp'),
+                displayField: 'code',
+                valueField: 'id'
             },
             renderer: function(value) {
                 if (value === undefined ||


More information about the Lada-commits mailing list