[Lada-commits] [PATCH 2 of 9] Use new queries store in search selection

Wald Commits scm-commit at wald.intevation.org
Tue Jul 23 11:46:30 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1374565987 -7200
# Node ID 5a9c6b71bad2e8327c3bcd9aa5c1994d85cd6377
# Parent  78134e20e62d6f1306b3c7ae48e0b4efc852ae0c
Use new queries store in search selection.

diff -r 78134e20e62d -r 5a9c6b71bad2 app/view/search/List.js
--- a/app/view/search/List.js	Tue Jul 23 09:52:05 2013 +0200
+++ b/app/view/search/List.js	Tue Jul 23 09:53:07 2013 +0200
@@ -1,23 +1,14 @@
-var searchStore = Ext.create('Ext.data.Store', {
-    fields: ['id', 'name', 'description', 'sql'],
-    data  : [
-        {'id': '1', 'name': 'MST, UWB', 'description': 'Beschreibung der MST, UWB Abfrage', 'sql': 'select * from xxx'},
-        {'id': '2', 'name': 'Rbegin', 'description': 'Beschreibung der Rbegin Abfrage', 'sql': 'select * from xxx'}
-    ]
-});
-
 Ext.define('Lada.view.search.List' ,{
     extend: 'Ext.form.FieldSet',
     title: 'SQL-Auswahl',
     alias: 'widget.queryselector',
-
     initComponent: function() {
         this.items = [
             {
                 id: 'search',
                 xtype: 'combobox',
                 editable: false,
-                store: searchStore,
+                store: 'Queries',
                 displayField:'name',
                 valueField:'id',
                 emptyText:'Wählen Sie eine Abfrage'


More information about the Lada-commits mailing list