comparison app/controller/Proben.js @ 157:237a4efe715a

Enabled loading Messungen.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 03 Jul 2013 12:27:36 +0200
parents 26ac4c99f8c4
children 82118c01bc52
comparison
equal deleted inserted replaced
156:dcb40a53ade2 157:237a4efe715a
7 stores: [ 7 stores: [
8 'Proben', 8 'Proben',
9 'Zusatzwerte', 9 'Zusatzwerte',
10 'Probenzusatzwerte', 10 'Probenzusatzwerte',
11 'Kommentare', 11 'Kommentare',
12 'Orte' 12 'Orte',
13 // 'Messungen', 13 'Messungen'
14 ], 14 ],
15 init: function() { 15 init: function() {
16 console.log('Initialising the Proben controller'); 16 console.log('Initialising the Proben controller');
17 this.control({ 17 this.control({
18 // CSS like selector to select element in the viewport. See 18 // CSS like selector to select element in the viewport. See
63 ostore.load({ 63 ostore.load({
64 params: { 64 params: {
65 probeId: id 65 probeId: id
66 } 66 }
67 }); 67 });
68 // Load Orte
69 var mstore = this.getMessungenStore();
70 mstore.load({
71 params: {
72 probeId: id
73 }
74 });
68 console.log("Loaded Probe with ID " + record.getId()); //outputs ID 75 console.log("Loaded Probe with ID " + record.getId()); //outputs ID
69 }, 76 },
70 createSuccess: function(form, record, operation) { 77 createSuccess: function(form, record, operation) {
71 // Reload store 78 // Reload store
72 var store = this.getProbenStore(); 79 var store = this.getProbenStore();

http://lada.wald.intevation.org