--- umc/js/udm.js (Revision 37565) +++ umc/js/udm.js (Arbeitskopie) @@ -436,11 +416,7 @@ var found = false; this._searchForm._widgets.superordinate.store.fetch( { onItem: lang.hitch( this, function( item ) { if ( this._searchForm._widgets.superordinate.store.getValue( item, 'id' ) == keys[ 0 ] ) { - var handle = this._searchForm._widgets.objectPropertyValue.on('valuesLoaded', lang.hitch( this, function() { - this.filter(this._searchForm.gatherFormValues()); - this.disconnect(handle); - } ) ); - this._searchForm._widgets.superordinate.set( 'value', keys[ 0 ] ); + this._searchForm.getWidget('superordinate').set( 'value', keys[ 0 ] ); found = true; return false; } @@ -780,19 +755,18 @@ } // a superordinate has been selected and we do not have a 'up' button so far -> add the button - this._upButton = this.own(new Button({ + this._upButton = new Button({ label: label, iconClass: 'umcIconUp', callback: lang.hitch(this, function() { this._searchForm.getWidget('superordinate').set('value', 'None'); - - // we can relaunch the search after all search form values - // have been updated - on.once(this._searchForm.getWidget('objectPropertyValue'), 'valuesLoaded', lang.hitch(this, 'filter')); }) - }))[0]; + }); this._grid._toolbar.addChild(this._upButton, 0); } + // we can relaunch the search after all search form values + // have been updated + this._searchForm.ready().then(lang.hitch(this, 'filter')); }))); }