# HG changeset patch # User Torsten Irländer # Date 1374055604 -7200 # Node ID 7bea6974fb5b19edb0918b6c25b0ceffee4f1c91 # Parent 80df1451b4a9e681b34a78d723f81d2b237cbc1e Added function to directly initialize the probenendit form. diff -r 80df1451b4a9 -r 7bea6974fb5b app/view/Viewport.js --- 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({