annotate app/view/search/List.js @ 429:608a1784a8ac

Load currently "selected" verwaltungseinheit when changing the selection.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 08 Nov 2013 12:46:24 +0100
parents d5a2f7af695a
children debfcc7713e3
rev   line source
349
d5a2f7af695a Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 254
diff changeset
1 /*
d5a2f7af695a Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 254
diff changeset
2 * Grid to list available search queryies
d5a2f7af695a Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 254
diff changeset
3 */
28
4d60b9ebce15 Renamed sql modul into search. Further display The query selection as Combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 25
diff changeset
4 Ext.define('Lada.view.search.List' ,{
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
5 extend: 'Ext.form.FieldSet',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
6 title: 'SQL-Auswahl',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
7 alias: 'widget.queryselector',
6
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 initComponent: function() {
254
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
9 this.layout = 'column',
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
10 this.items = [
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
11 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
12 id: 'search',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
13 xtype: 'combobox',
48
5a977bf18619 Make the combobox for selecting search queries not editiable. Only predefined
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 31
diff changeset
14 editable: false,
236
5a9c6b71bad2 Use new queries store in search selection.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 120
diff changeset
15 store: 'Queries',
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
16 displayField:'name',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
17 valueField:'id',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
18 emptyText:'Wählen Sie eine Abfrage'
254
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
19 },
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
20 {
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
21 xtype: 'panel',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
22 maxWidth: '500',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
23 border: false,
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
24 margin: '0 10',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
25 items: [
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
26 {
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
27 id: 'sqldesc',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
28 xtype: 'displayfield',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
29 fieldLabel: 'Beschreibung',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
30 value: '-/-'
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
31 },
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
32 {
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
33 id: 'sqlquery',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
34 xtype: 'displayfield',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
35 fieldLabel: 'Abfrage',
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
36 value: '-/-'
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
37 }
c2effc4a497b Added panel with details for the selected query
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 236
diff changeset
38 ]
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
39 }
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
40 ];
6
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
41 this.callParent(arguments);
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
42 }
8e79bda4d55b Added a list to select predefined SQL Statement for the Proben list.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
43 });

http://lada.wald.intevation.org