Mercurial > lada > lada-client
changeset 533:6301d3210a9f
merged.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 17 Dec 2014 12:10:40 +0100 |
parents | 91a1a88ee353 (current diff) 8b4ec83ddca3 (diff) |
children | 31a770c6a9a9 |
files | |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/Sql.js Wed Dec 17 12:08:29 2014 +0100 +++ b/app/controller/Sql.js Wed Dec 17 12:10:40 2014 +0100 @@ -59,7 +59,7 @@ selectSql: function(element, record) { var result = Ext.getCmp('result'); var filters = Ext.getCmp('queryfilters'); - //var sqlquery = Ext.getCmp('sqlquery'); + var columns = Ext.getCmp('results'); var sqldesc = Ext.getCmp('sqldesc'); var buttons = Ext.getCmp('SearchBtnPanel'); var displayFields = record[0].data.results; @@ -67,7 +67,11 @@ this.reset(); - //sqlquery.setValue(record[0].data.sql); + columnString = []; + for (var i = 0; i < displayFields.length; i++) { + columnString.push(displayFields[i].header); + } + columns.setValue(columnString.join(', ')); sqldesc.setValue(record[0].data.description); // Setup Columns of the probenlist
--- a/app/view/search/List.js Wed Dec 17 12:08:29 2014 +0100 +++ b/app/view/search/List.js Wed Dec 17 12:10:40 2014 +0100 @@ -60,9 +60,9 @@ shrinkWrap: 3, value: '-/-' }, { - id: 'sqlquery', + id: 'results', xtype: 'displayfield', - fieldLabel: 'Abfrage', + fieldLabel: 'Spalten', value: '-/-' }] }];