comparison app/controller/Proben.js @ 149:26ac4c99f8c4

Added Orte.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 01 Jul 2013 17:05:03 +0200
parents 7b1140bd8b3d
children 237a4efe715a
comparison
equal deleted inserted replaced
148:ed7fb4fa32dc 149:26ac4c99f8c4
6 ], 6 ],
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({
49 zstore.load({ 49 zstore.load({
50 params: { 50 params: {
51 probeId: id 51 probeId: id
52 } 52 }
53 }); 53 });
54 // Load Kommentare 54 // Load Kommentare
55 var kstore = this.getKommentareStore(); 55 var kstore = this.getKommentareStore();
56 kstore.load({ 56 kstore.load({
57 params: {
58 probeId: id
59 }
60 });
61 // Load Orte
62 var ostore = this.getOrteStore();
63 ostore.load({
57 params: { 64 params: {
58 probeId: id 65 probeId: id
59 } 66 }
60 }); 67 });
61 console.log("Loaded Probe with ID " + record.getId()); //outputs ID 68 console.log("Loaded Probe with ID " + record.getId()); //outputs ID

http://lada.wald.intevation.org