comparison app/controller/Sql.js @ 520:16fbbad55589

Updated viewport layout.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 16 Dec 2014 18:16:25 +0100
parents ad7f574b382a
children 9545adcfceeb
comparison
equal deleted inserted replaced
519:48593a6181c9 520:16fbbad55589
57 * selected search query 57 * selected search query
58 */ 58 */
59 selectSql: function(element, record) { 59 selectSql: function(element, record) {
60 var result = Ext.getCmp('result'); 60 var result = Ext.getCmp('result');
61 var filters = Ext.getCmp('queryfilters'); 61 var filters = Ext.getCmp('queryfilters');
62 var sqlquery = Ext.getCmp('sqlquery'); 62 //var sqlquery = Ext.getCmp('sqlquery');
63 var sqldesc = Ext.getCmp('sqldesc'); 63 var sqldesc = Ext.getCmp('sqldesc');
64 var buttons = Ext.getCmp('SearchBtnPanel'); 64 var buttons = Ext.getCmp('SearchBtnPanel');
65 var displayFields = record[0].data.results; 65 var displayFields = record[0].data.results;
66 var filterFields = record[0].data.filters; 66 var filterFields = record[0].data.filters;
67 67
68 this.reset(); 68 this.reset();
69 69
70 sqlquery.setValue(record[0].data.sql); 70 //sqlquery.setValue(record[0].data.sql);
71 sqldesc.setValue(record[0].data.description); 71 sqldesc.setValue(record[0].data.description);
72 72
73 // Setup Columns of the probenlist 73 // Setup Columns of the probenlist
74 displayFields.reverse(); 74 displayFields.reverse();
75 result.setupColumns(displayFields); 75 result.setupColumns(displayFields);

http://lada.wald.intevation.org