Mercurial > lada > lada-client
comparison app/view/proben/Edit.js @ 103:3552b0ee4526
Added Messungenlist to the Proben eddit view.
author | Torsten Irländer <torsten@irlaender.de> |
---|---|
date | Mon, 17 Jun 2013 16:59:04 +0200 |
parents | 21c069e2ecdb |
children | b91d5376db19 |
comparison
equal
deleted
inserted
replaced
102:804864f6274c | 103:3552b0ee4526 |
---|---|
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 'Lada.view.orte.List', |
24 'Lada.view.messungen.List' | |
24 ], | 25 ], |
25 | 26 |
26 initComponent: function() { | 27 initComponent: function() { |
27 // InitialConfig is the config object passed to the constructor on | 28 // InitialConfig is the config object passed to the constructor on |
28 // creation of this window. We need to pass it throuh to the form as | 29 // creation of this window. We need to pass it throuh to the form as |
45 params: { | 46 params: { |
46 probe: this.initialConfig['modelId'] | 47 probe: this.initialConfig['modelId'] |
47 //probe: record.data['probeId'] | 48 //probe: record.data['probeId'] |
48 } | 49 } |
49 }); | 50 }); |
51 // Load Messungen | |
52 var messungen = form.down('messungenlist'); | |
53 var mstore = messungen.getStore(); | |
54 mstore.load({ | |
55 params: { | |
56 probe: this.initialConfig['modelId'] | |
57 //probe: record.data['probeId'] | |
58 } | |
59 }); | |
50 this.items = [form]; | 60 this.items = [form]; |
51 this.buttons = [ | 61 this.buttons = [ |
52 { | 62 { |
53 text: 'Speichern', | 63 text: 'Speichern', |
54 handler: form.commit, | 64 handler: form.commit, |