[Lada-commits] [PATCH 1 of 2] Use equal fieldnames as in model for StatusWerte

Wald Commits scm-commit at wald.intevation.org
Wed Jun 8 12:44:49 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1465382273 -7200
# Node ID 85acec6c6e6af544770f97d0216d1a7aa7ec89f8
# Parent  846dcd217be3eaabf41b075a3de87ca75cf0cc24
Use equal fieldnames as in model for StatusWerte.

This will enable us to use a model based store here too.

diff -r 846dcd217be3 -r 85acec6c6e6a app/view/widget/Status.js
--- a/app/view/widget/Status.js	Wed Jun 08 12:09:43 2016 +0200
+++ b/app/view/widget/Status.js	Wed Jun 08 12:37:53 2016 +0200
@@ -7,25 +7,25 @@
  */
 
 var statuswerteStore = Ext.create('Ext.data.Store', {
-    fields: ['id', 'status'],
+    fields: ['id', 'wert'],
     data: [{
         'id': 1,
-        'status': 'plausibel'
+        'wert': 'plausibel'
     }, {
         'id': 2,
-        'status': 'nicht repräsentativ'
+        'wert': 'nicht repräsentativ'
     }, {
         'id': 3,
-        'status': 'nicht plausibel'
+        'wert': 'nicht plausibel'
     }, {
         'id': 4,
-        'status': 'Rückfrage'
+        'wert': 'Rückfrage'
     }, {
         'id': 7,
-        'status': 'nicht lieferbar'
+        'wert': 'nicht lieferbar'
     }, {
         'id': 8,
-        'status': 'zurücksetzen'
+        'wert': 'zurücksetzen'
     }]
 });
 
@@ -36,7 +36,7 @@
     extend: 'Lada.view.widget.base.ComboBox',
     alias: 'widget.statuswert',
     store: statuswerteStore,
-    displayField: 'status',
+    displayField: 'wert',
     valueField: 'id',
     emptyText: 'Wählen Sie einen Status',
     // Enable filtering of comboboxes


More information about the Lada-commits mailing list