comparison app/view/search/List.js @ 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 19eab475bbe5
children c2effc4a497b
comparison
equal deleted inserted replaced
235:78134e20e62d 236:5a9c6b71bad2
1 var searchStore = Ext.create('Ext.data.Store', {
2 fields: ['id', 'name', 'description', 'sql'],
3 data : [
4 {'id': '1', 'name': 'MST, UWB', 'description': 'Beschreibung der MST, UWB Abfrage', 'sql': 'select * from xxx'},
5 {'id': '2', 'name': 'Rbegin', 'description': 'Beschreibung der Rbegin Abfrage', 'sql': 'select * from xxx'}
6 ]
7 });
8
9 Ext.define('Lada.view.search.List' ,{ 1 Ext.define('Lada.view.search.List' ,{
10 extend: 'Ext.form.FieldSet', 2 extend: 'Ext.form.FieldSet',
11 title: 'SQL-Auswahl', 3 title: 'SQL-Auswahl',
12 alias: 'widget.queryselector', 4 alias: 'widget.queryselector',
13
14 initComponent: function() { 5 initComponent: function() {
15 this.items = [ 6 this.items = [
16 { 7 {
17 id: 'search', 8 id: 'search',
18 xtype: 'combobox', 9 xtype: 'combobox',
19 editable: false, 10 editable: false,
20 store: searchStore, 11 store: 'Queries',
21 displayField:'name', 12 displayField:'name',
22 valueField:'id', 13 valueField:'id',
23 emptyText:'Wählen Sie eine Abfrage' 14 emptyText:'Wählen Sie eine Abfrage'
24 } 15 }
25 ]; 16 ];

http://lada.wald.intevation.org