comparison app.js @ 17:3eaeeec2bb28

Changed layout and added Listeners to show the correct variable definition for the selected sql query.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 30 Apr 2013 17:55:48 +0200
parents 06da8faa2806
children 72778ac34dbb
comparison
equal deleted inserted replaced
16:4faac2a04345 17:3eaeeec2bb28
9 9
10 // This code works here, but this should usually be done in the 10 // This code works here, but this should usually be done in the
11 // Viewport.js class. 11 // Viewport.js class.
12 Ext.create('Ext.panel.Panel', { 12 Ext.create('Ext.panel.Panel', {
13 renderTo: Ext.getBody(), 13 renderTo: Ext.getBody(),
14 title: 'Probenauswahlmaske', 14 title: '<center>Probenauswahlmaske</center>',
15 items: [ 15 items:[
16 { 16 {
17 xtype: 'probenlist' 17 xtype: 'panel',
18 id: 'searchSelection',
19 border: false,
20 padding: '10 10 10 10',
21 items: [
22 // 1. SQL-Selection
23 // 1.1 Just a small texttual field
24 {
25 xtype: 'displayfield',
26 padding : '10 0',
27 fieldLabel: '<b>SQL-Auswahl</b>'
28 },
29 // 1.2 Selection of prepared sql statements
30 {
31 xtype: 'sqllist'
32 }
33 ]
34 },
35 {
36 xtype: 'panel',
37 id: 'searchVariables',
38 hidden: true,
39 border: false,
40 padding: '10 10 10 10',
41 items: [
42 // 2. Variable-Definition. Depending on the SQL-Selection we
43 // need to show a small form to be able to diefine some values
44 // within the preselected Search-statement.
45 // 2.1 Just a small texttual field
46 {
47 xtype: 'displayfield',
48 padding : '10 0',
49 fieldLabel: '<b>Variablenbelegung (Zeiten in UTC)</b>',
50 labelWidth: 500
51 }
52
53 ]
54 },
55 {
56 xtype: 'probenlist',
57 id: 'searchResult',
58 hidden: true,
59 padding: '10 10 10 10'
18 } 60 }
19 ] 61 ]
20 }); 62 });
21 }, 63 },
22 // Define the controllers of the application. They will be initialized 64 // Define the controllers of the application. They will be initialized

http://lada.wald.intevation.org