torsten@6: Ext.define('Lada.view.sql.List' ,{ torsten@6: extend: 'Ext.grid.Panel', torsten@6: alias: 'widget.sqllist', torsten@6: torsten@6: title: 'SQL-Auswahl', torsten@6: torsten@6: initComponent: function() { torsten@6: this.store = { torsten@6: fields: ['id', 'name', 'description', 'sql'], torsten@6: data : [ torsten@6: {'id': '1', 'name': 'MST, UWB', 'description': 'Beschreibung der MST, UWB Abfrage', 'sql': 'select * from xxx'}, torsten@6: {'id': '2', 'name': 'Rbegin', 'description': 'Beschreibung der Rbegin Abfrage', 'sql': 'select * from xxx'} torsten@6: ] torsten@6: }; torsten@6: torsten@6: this.columns = [ torsten@6: {header: 'ID', dataIndex: 'id', flex: 1}, torsten@6: {header: 'Kurzname', dataIndex: 'name', flex: 1}, torsten@6: {header: 'SQL', dataIndex: 'desc', flex: 1} torsten@6: ]; torsten@6: torsten@6: this.callParent(arguments); torsten@6: } torsten@6: }); torsten@6: