Mercurial > lada > lada-client
changeset 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 (2013-07-08) |
parents | 5d72d74a2daf |
children | 2cf26580d75d |
files | app/controller/Messungen.js |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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