Mercurial > lada > lada-client
changeset 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 | 80df1451b4a9 |
children | edb2b636319f |
files | app/view/Viewport.js |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
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({