comparison app/view/Viewport.js @ 245:9a2c04b19874

Put all available search filters to the viewport. They are later hidden and shown when the user selects the search query
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 23 Jul 2013 14:16:41 +0200
parents 7bea6974fb5b
children 125e2d43cd0f
comparison
equal deleted inserted replaced
244:7097182150d9 245:9a2c04b19874
1 Ext.define('Lada.view.Viewport' ,{ 1 Ext.define('Lada.view.Viewport' ,{
2 extend: 'Ext.container.Viewport', 2 extend: 'Ext.container.Viewport',
3 requires: [ 3 requires: [
4 'Lada.view.search.List', 4 'Lada.view.search.List',
5 'Lada.view.search.Query1', 5 'Lada.view.proben.List',
6 'Lada.view.search.Query2', 6 'Lada.view.widgets.Mst',
7 'Lada.view.proben.List' 7 'Lada.view.widgets.Uwb',
8 'Lada.view.widgets.Datetime'
8 ], 9 ],
9 10
10 initComponent: function() { 11 initComponent: function() {
11 console.log('Setting up Viewport'); 12 console.log('Setting up Viewport');
12 this.initSearch(); 13 this.initSearch();
106 xtype: 'queryselector', 107 xtype: 'queryselector',
107 margin: '0 0 10 0' 108 margin: '0 0 10 0'
108 }, 109 },
109 // Variables settings for the current selected sql statement. 110 // Variables settings for the current selected sql statement.
110 { 111 {
111 id: 'query1', 112 xtype: 'fieldset',
112 xtype: 'query1', 113 id: 'queryfilters',
113 hidden: true 114 title: 'Variablenbelegung',
114 }, 115 hidden: true,
115 { 116 items: [
116 id: 'query2', 117 {
117 xtype: 'query2', 118 id: 'filter-mstId',
118 hidden: true 119 xtype: 'mst',
119 120 fieldLabel: 'Messstelle',
121 labelWidth: 100,
122 hidden: true
123 },
124 {
125 id: 'filter-umwId',
126 xtype: 'uwb',
127 fieldLabel: 'Umweltbereich',
128 labelWidth: 100,
129 hidden: true
130 },
131 {
132 id: 'pbegin',
133 xtype: 'datetime',
134 fieldLabel: 'Probenbeginn',
135 labelWidth: 100,
136 hidden: true
137 }
138 ]
120 }, 139 },
121 // Buttons to trigger the search. 140 // Buttons to trigger the search.
122 { 141 {
123 id: 'SearchBtnPanel', 142 id: 'SearchBtnPanel',
124 xtype: 'panel', 143 xtype: 'panel',

http://lada.wald.intevation.org