Mercurial > lada > lada-client
diff app/controller/Proben.js @ 122:a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 21 Jun 2013 16:56:17 +0200 |
parents | c05fda928b82 |
children | e80a9114524c |
line wrap: on
line diff
--- a/app/controller/Proben.js Fri Jun 21 16:55:23 2013 +0200 +++ b/app/controller/Proben.js Fri Jun 21 16:56:17 2013 +0200 @@ -5,10 +5,10 @@ 'proben.Create' ], stores: [ - 'Proben' + 'Proben', + 'Zusatzwerte' // 'Orte', // 'Messungen', - // 'Zusatzwerte', // 'Messeinheit', // 'Probenzusatzwert' ], @@ -41,6 +41,14 @@ console.log('Editing Probe'); var id = record.get('probeId'); var view = Ext.widget('probenedit', {modelId: id}); + + // Load Zusatzwerte + var zstore = this.getZusatzwerteStore(); + zstore.load({ + params: { + probe: id + } + }); console.log("Loaded Probe with ID " + record.getId()); //outputs ID }, createSuccess: function(form, record, operation) {