comparison app/view/proben/Edit.js @ 106:b91d5376db19

Load Zusatzwerte from server
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 18 Jun 2013 14:02:48 +0200
parents 3552b0ee4526
children c05fda928b82
comparison
equal deleted inserted replaced
105:7ad96e3d70c1 106:b91d5376db19
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 'Lada.view.messungen.List',
25 'Lada.view.zusatzwerte.List'
25 ], 26 ],
26 27
27 initComponent: function() { 28 initComponent: function() {
28 // InitialConfig is the config object passed to the constructor on 29 // InitialConfig is the config object passed to the constructor on
29 // creation of this window. We need to pass it throuh to the form as 30 // creation of this window. We need to pass it throuh to the form as
46 params: { 47 params: {
47 probe: this.initialConfig['modelId'] 48 probe: this.initialConfig['modelId']
48 //probe: record.data['probeId'] 49 //probe: record.data['probeId']
49 } 50 }
50 }); 51 });
52 // Load Zusatzwerte
53 var zwerte = form.down('zusatzwertelist');
54 var zstore = zwerte.getStore();
55 zstore.load({
56 params: {
57 probe: this.initialConfig['modelId']
58 //probe: record.data['probeId']
59 }
60 });
51 // Load Messungen 61 // Load Messungen
52 var messungen = form.down('messungenlist'); 62 var messungen = form.down('messungenlist');
53 var mstore = messungen.getStore(); 63 var mstore = messungen.getStore();
54 mstore.load({ 64 mstore.load({
55 params: { 65 params: {

http://lada.wald.intevation.org