Mercurial > lada > lada-client
annotate app/view/widgets/Netzbetreiber.js @ 162:5eb0cfac0e30
Added nested id attribute which comes in JSON response to the model as we need
it later in the grid view to be able to acess messungsIs and probeId in the
custom renderer.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 03 Jul 2013 14:02:35 +0200 |
parents | c05fda928b82 |
children | 70a1b5962930 |
rev | line source |
---|---|
121
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
1 // Combobox for Netzbetreiber |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
2 var netzbetreiberStore = Ext.create('Ext.data.Store', { |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
3 fields: ['netzbetreiberId', 'netzbetreiber'], |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
4 proxy: { |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
5 type: 'ajax', |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
6 api: { |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
7 read: 'server/rest/netzbetreiber' |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
8 }, |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
9 reader: { |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
10 type: 'json', |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
11 root: 'data' |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
12 } |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
13 } |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
14 }); |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
15 |
91
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 Ext.define('Lada.view.widgets.Netzbetreiber' ,{ |
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 extend: 'Ext.form.ComboBox', |
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 alias: 'widget.netzbetreiber', |
121
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
19 store: netzbetreiberStore, |
91
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 displayField:'netzbetreiber', |
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 valueField: 'netzbetreiberId', |
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 emptyText:'Wählen Sie einen Netzbetreiber', |
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 initComponent: function() { |
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 this.callParent(arguments); |
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 } |
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 }); |
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 |