diff app/controller/Sql.js @ 252:1bce2d59b7e9

Update description and sql statement when chosing another query
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 24 Jul 2013 15:24:23 +0200
parents d79b3bab600c
children 424f18da3c64
line wrap: on
line diff
--- a/app/controller/Sql.js	Wed Jul 24 15:23:29 2013 +0200
+++ b/app/controller/Sql.js	Wed Jul 24 15:24:23 2013 +0200
@@ -33,11 +33,16 @@
     selectSql: function(element, record, index) {
         var result = Ext.getCmp('result');
         var filters = Ext.getCmp('queryfilters');
+        var sqlquery = Ext.getCmp('sqlquery');
+        var sqldesc = Ext.getCmp('sqldesc');
         var buttons = Ext.getCmp('SearchBtnPanel');
         var displayFields = record[0].data.fields;
         var filterFields = record[0].data.filters;
         this.reset();
 
+        sqlquery.setValue(record[0].data.sql);
+        sqldesc.setValue(record[0].data.description);
+
         // Setup Columns of the probenlist
         result.setupColumns(displayFields);
 

http://lada.wald.intevation.org