comparison app/view/Viewport.js @ 230:7bea6974fb5b

Added function to directly initialize the probenendit form.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 17 Jul 2013 12:06:44 +0200
parents 38e84783785f
children 9a2c04b19874
comparison
equal deleted inserted replaced
229:80df1451b4a9 230:7bea6974fb5b
13 13
14 // Development related: 14 // Development related:
15 // Disable "initSearch" call and enable one of the following init 15 // Disable "initSearch" call and enable one of the following init
16 // methods to get a dialog directly without the need to click through 16 // methods to get a dialog directly without the need to click through
17 // the whole application. 17 // the whole application.
18 //this.initProbe();
18 //this.initOrt(); 19 //this.initOrt();
19 //this.initMessung(); 20 //this.initMessung();
20 //this.initMesswert(); 21 //this.initMesswert();
21 22
22 this.callParent(arguments); 23 this.callParent(arguments);
24 },
25 initProbe: function() {
26 var store = Ext.getStore('Proben');
27 store.load({
28 params: {
29 probeId: "000007575943X"
30 },
31 callback: function() {
32 var mstore = Ext.getStore('Messungen');
33 mstore.load({
34 params: {
35 probeId: "000007575943X"
36 }
37 });
38 var model = store.data.items[0];
39 var win = Ext.create('Lada.view.proben.Edit', {model: model});
40 }
41 });
23 }, 42 },
24 initMesswert: function() { 43 initMesswert: function() {
25 var store = Ext.getStore('Messwerte'); 44 var store = Ext.getStore('Messwerte');
26 store.load({ 45 store.load({
27 params: { 46 params: {

http://lada.wald.intevation.org