Mercurial > lada > lada-client
diff app/controller/Sql.js @ 25:f964a50bfe57
Restructured the application. Fixed layouts etc.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 08 May 2013 12:20:06 +0200 |
parents | 3eaeeec2bb28 |
children | 4d60b9ebce15 |
line wrap: on
line diff
--- a/app/controller/Sql.js Tue May 07 17:20:11 2013 +0200 +++ b/app/controller/Sql.js Wed May 08 12:20:06 2013 +0200 @@ -24,26 +24,28 @@ }, selectSql: function(grid, record) { var selection = record.get('id'); - var variables = Ext.getCmp('searchVariables'); - console.log('Selected SQL' + selection); - // Set correct form for the current SQL-Selection - console.log('Length is ' + variables.items.length); - if (variables.items.length > 1) { - console.log('Length is > than 1'); - variables.remove(currentVar.id); - } - if (selection == 1) { - currentVar = variables1; - } - else { - currentVar = variables2; - } - variables.add(currentVar); - // Show the panel for the variable definiton. - variables.show(); + var variables = Ext.getCmp('variables'); + var result = Ext.getCmp('result'); + console.log('Selected SQL ' + selection); + //// Set correct form for the current SQL-Selection + //console.log('Length is ' + variables.items.length); + //if (variables.items.length > 1) { + // console.log('Length is > than 1'); + // variables.remove(currentVar.id); + //} + //if (selection == 1) { + // currentVar = variables1; + //} + //else { + // currentVar = variables2; + //} + //variables.add(currentVar); + //// Show the panel for the variable definiton. + //variables.show(); // Show the results. - Ext.getCmp('searchResult').show(); + result.getStore().load(); + result.show(); } });