Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/view/Viewport.js Wed Jul 17 11:35:53 2013 +0200 +++ b/app/view/Viewport.js Wed Jul 17 12:06:44 2013 +0200 @@ -15,12 +15,31 @@ // Disable "initSearch" call and enable one of the following init // methods to get a dialog directly without the need to click through // the whole application. + //this.initProbe(); //this.initOrt(); //this.initMessung(); //this.initMesswert(); this.callParent(arguments); }, + initProbe: function() { + var store = Ext.getStore('Proben'); + store.load({ + params: { + probeId: "000007575943X" + }, + callback: function() { + var mstore = Ext.getStore('Messungen'); + mstore.load({ + params: { + probeId: "000007575943X" + } + }); + var model = store.data.items[0]; + var win = Ext.create('Lada.view.proben.Edit', {model: model}); + } + }); + }, initMesswert: function() { var store = Ext.getStore('Messwerte'); store.load({