comparison app/view/search/List.js @ 120:19eab475bbe5

Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 21 Jun 2013 16:53:39 +0200
parents 5a977bf18619
children 5a9c6b71bad2
comparison
equal deleted inserted replaced
119:1a08905b46e2 120:19eab475bbe5
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
1 Ext.define('Lada.view.search.List' ,{ 9 Ext.define('Lada.view.search.List' ,{
2 extend: 'Ext.form.FieldSet', 10 extend: 'Ext.form.FieldSet',
3 title: 'SQL-Auswahl', 11 title: 'SQL-Auswahl',
4 alias: 'widget.queryselector', 12 alias: 'widget.queryselector',
5 13
7 this.items = [ 15 this.items = [
8 { 16 {
9 id: 'search', 17 id: 'search',
10 xtype: 'combobox', 18 xtype: 'combobox',
11 editable: false, 19 editable: false,
12 store: 'Sql', 20 store: searchStore,
13 displayField:'name', 21 displayField:'name',
14 valueField:'id', 22 valueField:'id',
15 emptyText:'Wählen Sie eine Abfrage' 23 emptyText:'Wählen Sie eine Abfrage'
16 } 24 }
17 ]; 25 ];

http://lada.wald.intevation.org