comparison app/view/widgets/Datenbasis.js @ 121:c05fda928b82

Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 21 Jun 2013 16:55:23 +0200
parents a1be7ccd4d0c
children 70a1b5962930
comparison
equal deleted inserted replaced
120:19eab475bbe5 121:c05fda928b82
1 // Combobox for Datenbasis 1 // Combobox for Datenbasis
2 var datenbasisStore = Ext.create('Ext.data.Store', {
3 fields: ['datenbasisId', 'beschreibung', 'datenbasis'],
4 proxy: {
5 type: 'ajax',
6 api: {
7 read: 'server/rest/datenbasis'
8 },
9 reader: {
10 type: 'json',
11 root: 'data'
12 }
13 }
14 });
15
2 Ext.define('Lada.view.widgets.Datenbasis' ,{ 16 Ext.define('Lada.view.widgets.Datenbasis' ,{
3 extend: 'Ext.form.ComboBox', 17 extend: 'Ext.form.ComboBox',
4 alias: 'widget.datenbasis', 18 alias: 'widget.datenbasis',
5 store: 'Datenbasis', 19 store: datenbasisStore,
6 displayField:'datenbasis', 20 displayField:'datenbasis',
7 valueField: 'datenbasisId', 21 valueField: 'datenbasisId',
8 emptyText:'Wählen Sie eine Datenbasis', 22 emptyText:'Wählen Sie eine Datenbasis',
9 initComponent: function() { 23 initComponent: function() {
10 this.callParent(arguments); 24 this.callParent(arguments);
11 } 25 }
12 }); 26 });
13

http://lada.wald.intevation.org