comparison app/view/Viewport.js @ 369:cebed9ef8293

Dynamically add configured search filters. Send needed values to the server.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 16 Aug 2013 12:20:51 +0200
parents 94884cd8f8c0
children fe8d6e1b08ff
comparison
equal deleted inserted replaced
368:cec9fe8d0000 369:cebed9ef8293
8 Ext.define('Lada.view.Viewport' ,{ 8 Ext.define('Lada.view.Viewport' ,{
9 extend: 'Ext.container.Viewport', 9 extend: 'Ext.container.Viewport',
10 requires: [ 10 requires: [
11 'Lada.store.Info', 11 'Lada.store.Info',
12 'Lada.view.search.List', 12 'Lada.view.search.List',
13 'Lada.view.proben.List', 13 'Lada.view.proben.List'
14 'Lada.view.widgets.Mst',
15 'Lada.view.widgets.Uwb',
16 'Lada.view.widgets.Datetime'
17 ], 14 ],
18 initComponent: function() { 15 initComponent: function() {
19 console.log('Setting up Viewport'); 16 console.log('Setting up Viewport');
20 this.initSearch(); 17 this.initSearch();
21 18
159 hidden: true, 156 hidden: true,
160 }, 157 },
161 // Auswahl einer Abfrage. 158 // Auswahl einer Abfrage.
162 { 159 {
163 xtype: 'queryselector', 160 xtype: 'queryselector',
161 id: 'queryselector',
164 margin: '0 0 10 0' 162 margin: '0 0 10 0'
165 }, 163 },
166 // Variables settings for the current selected sql statement. 164 // Variables settings for the current selected sql statement.
167 { 165 {
168 xtype: 'fieldset', 166 xtype: 'fieldset',
169 id: 'queryfilters', 167 id: 'queryfilters',
170 title: 'Variablenbelegung', 168 title: 'Variablenbelegung',
171 hidden: true, 169 hidden: true,
172 items: [ 170 items: []
173 {
174 id: 'filter-mstId',
175 xtype: 'mst',
176 fieldLabel: 'Messstelle',
177 labelWidth: 100,
178 hidden: true
179 },
180 {
181 id: 'filter-umwId',
182 xtype: 'uwb',
183 fieldLabel: 'Umweltbereich',
184 labelWidth: 100,
185 hidden: true
186 },
187 {
188 id: 'filter-pbegin',
189 xtype: 'datetime',
190 fieldLabel: 'Probenbeginn',
191 labelWidth: 100,
192 hidden: true
193 }
194 ]
195 }, 171 },
196 // Buttons to trigger the search. 172 // Buttons to trigger the search.
197 { 173 {
198 id: 'SearchBtnPanel', 174 id: 'SearchBtnPanel',
199 xtype: 'panel', 175 xtype: 'panel',

http://lada.wald.intevation.org