Mercurial > lada > lada-client
comparison app/view/sql/List.js @ 6:8e79bda4d55b
Added a list to select predefined SQL Statement for the Proben list.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 29 Apr 2013 15:18:26 +0200 |
parents | |
children | e4fcb4ddd782 |
comparison
equal
deleted
inserted
replaced
5:039584709fa7 | 6:8e79bda4d55b |
---|---|
1 Ext.define('Lada.view.sql.List' ,{ | |
2 extend: 'Ext.grid.Panel', | |
3 alias: 'widget.sqllist', | |
4 | |
5 title: 'SQL-Auswahl', | |
6 | |
7 initComponent: function() { | |
8 this.store = { | |
9 fields: ['id', 'name', 'description', 'sql'], | |
10 data : [ | |
11 {'id': '1', 'name': 'MST, UWB', 'description': 'Beschreibung der MST, UWB Abfrage', 'sql': 'select * from xxx'}, | |
12 {'id': '2', 'name': 'Rbegin', 'description': 'Beschreibung der Rbegin Abfrage', 'sql': 'select * from xxx'} | |
13 ] | |
14 }; | |
15 | |
16 this.columns = [ | |
17 {header: 'ID', dataIndex: 'id', flex: 1}, | |
18 {header: 'Kurzname', dataIndex: 'name', flex: 1}, | |
19 {header: 'SQL', dataIndex: 'desc', flex: 1} | |
20 ]; | |
21 | |
22 this.callParent(arguments); | |
23 } | |
24 }); | |
25 |