Mercurial > lada > lada-client
comparison app/controller/Messungen.js @ 195:01021f00ce6a
Load kommentare, status and messwerte when editing probe.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 08 Jul 2013 16:09:19 +0200 |
parents | 5d72d74a2daf |
children | 1b5a0cb4fa6c |
comparison
equal
deleted
inserted
replaced
194:5d72d74a2daf | 195:01021f00ce6a |
---|---|
50 }, | 50 }, |
51 editMessung: function(grid, record) { | 51 editMessung: function(grid, record) { |
52 console.log('Editing Messung'); | 52 console.log('Editing Messung'); |
53 var view = Ext.widget('messungencreate', {model: record}); | 53 var view = Ext.widget('messungencreate', {model: record}); |
54 console.log("Loaded Messung with ID " + record.getId()); //outputs ID | 54 console.log("Loaded Messung with ID " + record.getId()); //outputs ID |
55 | |
56 var kstore = this.getMKommentareStore(); | |
57 kstore.load({ | |
58 params: { | |
59 probeId: probeId, | |
60 messungsId: record.get('messungsId') | |
61 } | |
62 }); | |
63 var sstore = this.getStatusStore(); | |
64 sstore.load({ | |
65 params: { | |
66 probeId: probeId, | |
67 messungsId: record.get('messungsId') | |
68 } | |
69 }); | |
70 var mstore = this.getMessungwerteStore(); | |
71 mstore.load({ | |
72 params: { | |
73 probeId: probeId, | |
74 messungsId: record.get('messungsId') | |
75 } | |
76 }); | |
55 }, | 77 }, |
56 deleteMessung: function(button) { | 78 deleteMessung: function(button) { |
57 // Get selected item in grid | 79 // Get selected item in grid |
58 var grid = button.up('grid'); | 80 var grid = button.up('grid'); |
59 var selection = grid.getView().getSelectionModel().getSelection()[0]; | 81 var selection = grid.getView().getSelectionModel().getSelection()[0]; |