changeset 528:8b4ec83ddca3

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 16 Dec 2014 18:28:58 +0100
parents 9545adcfceeb (diff) 381066c87ba8 (current diff)
children 6301d3210a9f 0eb7751ce158
files
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Sql.js	Tue Dec 16 18:22:04 2014 +0100
+++ b/app/controller/Sql.js	Tue Dec 16 18:28:58 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	Tue Dec 16 18:22:04 2014 +0100
+++ b/app/view/search/List.js	Tue Dec 16 18:28:58 2014 +0100
@@ -60,9 +60,9 @@
                 shrinkWrap: 3,
                 value: '-/-'
             }, {
-                id: 'sqlquery',
+                id: 'results',
                 xtype: 'displayfield',
-                fieldLabel: 'Abfrage',
+                fieldLabel: 'Spalten',
                 value: '-/-'
             }]
         }];

http://lada.wald.intevation.org