[Lada-commits] [PATCH 09 of 11] Update description and sql statement when chosing another query

Wald Commits scm-commit at wald.intevation.org
Wed Jul 24 15:28:05 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1374672263 -7200
# Node ID 1bce2d59b7e9d04813cdf2431d6bca823584ac53
# Parent  d79b3bab600cfb956f3b1066bd9a716bfc3292af
Update description and sql statement when chosing another query

diff -r d79b3bab600c -r 1bce2d59b7e9 app/controller/Sql.js
--- 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);
 


More information about the Lada-commits mailing list