Mercurial > lada > lada-client
comparison app/controller/Proben.js @ 135:e80a9114524c
Load Probenzusatzwerte on editing a Probe. Values are needed in the
Zusatzwertlisting.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 26 Jun 2013 10:16:10 +0200 |
parents | a7bfaeb1655d |
children | df6e36dd57ee |
comparison
equal
deleted
inserted
replaced
134:1620d02d2973 | 135:e80a9114524c |
---|---|
4 'proben.Edit', | 4 'proben.Edit', |
5 'proben.Create' | 5 'proben.Create' |
6 ], | 6 ], |
7 stores: [ | 7 stores: [ |
8 'Proben', | 8 'Proben', |
9 'Zusatzwerte' | 9 'Zusatzwerte', |
10 'Probenzusatzwerte' | |
10 // 'Orte', | 11 // 'Orte', |
11 // 'Messungen', | 12 // 'Messungen', |
12 // 'Messeinheit', | 13 // 'Messeinheit', |
13 // 'Probenzusatzwert' | |
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({ |
18 // CSS like selector to select element in the viewport. See | 18 // CSS like selector to select element in the viewport. See |
41 console.log('Editing Probe'); | 41 console.log('Editing Probe'); |
42 var id = record.get('probeId'); | 42 var id = record.get('probeId'); |
43 var view = Ext.widget('probenedit', {modelId: id}); | 43 var view = Ext.widget('probenedit', {modelId: id}); |
44 | 44 |
45 // Load Zusatzwerte | 45 // Load Zusatzwerte |
46 var pstore = this.getProbenzusatzwerteStore(); | |
47 pstore.load(); | |
46 var zstore = this.getZusatzwerteStore(); | 48 var zstore = this.getZusatzwerteStore(); |
47 zstore.load({ | 49 zstore.load({ |
48 params: { | 50 params: { |
49 probe: id | 51 probe: id |
50 } | 52 } |