annotate app/view/widgets/Messmethode.js @ 210:f3a2f985f451

Set parentId to messwert for add button
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 12 Jul 2013 11:49:37 +0200
parents c53f3110852e
children 70a1b5962930
rev   line source
178
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 // Combobox for Messmethode
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 var mmtStore = Ext.create('Ext.data.Store', {
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 fields: ['mmtId', 'messmethhode'],
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 proxy: {
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 type: 'ajax',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 api: {
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 read: 'server/rest/messmethode'
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 },
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 reader: {
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 type: 'json',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 root: 'data'
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 }
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 }
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 });
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 Ext.define('Lada.view.widgets.Messmethode' ,{
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 extend: 'Ext.form.ComboBox',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 alias: 'widget.messmethode',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 store: mmtStore,
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 displayField:'messmethhode',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 valueField: 'mmtId',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 emptyText:'Wählen Sie eine Messmethode',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 initComponent: function() {
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 this.callParent(arguments);
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 }
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 });

http://lada.wald.intevation.org