comparison app/view/proben/Edit.js @ 94:21c069e2ecdb

Added Orte to the Proben edit window
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 13 Jun 2013 14:24:18 +0200
parents 95b08b96f5c9
children 3552b0ee4526
comparison
equal deleted inserted replaced
93:ab067fdb91b5 94:21c069e2ecdb
17 'Lada.view.widgets.Datenbasis', 17 'Lada.view.widgets.Datenbasis',
18 'Lada.view.widgets.Probenart', 18 'Lada.view.widgets.Probenart',
19 'Lada.view.widgets.Betriebsart', 19 'Lada.view.widgets.Betriebsart',
20 'Lada.view.widgets.Testdatensatz', 20 'Lada.view.widgets.Testdatensatz',
21 'Lada.view.widgets.Netzbetreiber', 21 'Lada.view.widgets.Netzbetreiber',
22 'Lada.view.kommentare.List' 22 'Lada.view.kommentare.List',
23 'Lada.view.orte.List'
23 ], 24 ],
24 25
25 initComponent: function() { 26 initComponent: function() {
26 // InitialConfig is the config object passed to the constructor on 27 // InitialConfig is the config object passed to the constructor on
27 // creation of this window. We need to pass it throuh to the form as 28 // creation of this window. We need to pass it throuh to the form as
35 params: { 36 params: {
36 probe: this.initialConfig['modelId'] 37 probe: this.initialConfig['modelId']
37 //probe: record.data['probeId'] 38 //probe: record.data['probeId']
38 } 39 }
39 }); 40 });
41 // Load Orte
42 var orte = form.down('ortelist');
43 var ostore = orte.getStore();
44 ostore.load({
45 params: {
46 probe: this.initialConfig['modelId']
47 //probe: record.data['probeId']
48 }
49 });
40 this.items = [form]; 50 this.items = [form];
41 this.buttons = [ 51 this.buttons = [
42 { 52 {
43 text: 'Speichern', 53 text: 'Speichern',
44 handler: form.commit, 54 handler: form.commit,

http://lada.wald.intevation.org