[Lada-commits] [PATCH 06 of 13] Load kommentare, status and messwerte when editing probe
Wald Commits
scm-commit at wald.intevation.org
Mon Jul 8 16:17:44 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373292559 -7200
# Node ID 01021f00ce6a7712ff8b6097ea8cc17dcbd0eaec
# Parent 5d72d74a2dafb96cc04abf85368bee0c0bb8d105
Load kommentare, status and messwerte when editing probe.
diff -r 5d72d74a2daf -r 01021f00ce6a app/controller/Messungen.js
--- a/app/controller/Messungen.js Mon Jul 08 14:26:05 2013 +0200
+++ b/app/controller/Messungen.js Mon Jul 08 16:09:19 2013 +0200
@@ -52,6 +52,28 @@
console.log('Editing Messung');
var view = Ext.widget('messungencreate', {model: record});
console.log("Loaded Messung with ID " + record.getId()); //outputs ID
+
+ var kstore = this.getMKommentareStore();
+ kstore.load({
+ params: {
+ probeId: probeId,
+ messungsId: record.get('messungsId')
+ }
+ });
+ var sstore = this.getStatusStore();
+ sstore.load({
+ params: {
+ probeId: probeId,
+ messungsId: record.get('messungsId')
+ }
+ });
+ var mstore = this.getMessungwerteStore();
+ mstore.load({
+ params: {
+ probeId: probeId,
+ messungsId: record.get('messungsId')
+ }
+ });
},
deleteMessung: function(button) {
// Get selected item in grid
More information about the Lada-commits
mailing list