changeset 236:5a9c6b71bad2

Use new queries store in search selection.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 23 Jul 2013 09:53:07 +0200
parents 78134e20e62d
children bc2d46a67bbd
files app/view/search/List.js
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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'

http://lada.wald.intevation.org