Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/view/search/List.js Fri Jun 21 16:51:16 2013 +0200 +++ b/app/view/search/List.js Fri Jun 21 16:53:39 2013 +0200 @@ -1,3 +1,11 @@ +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', @@ -9,7 +17,7 @@ id: 'search', xtype: 'combobox', editable: false, - store: 'Sql', + store: searchStore, displayField:'name', valueField:'id', emptyText:'Wählen Sie eine Abfrage'