Thomas,

in the event handler, you can get at the object you added the listener 
to with

    e.getCurrentTarget()

i.e. that should return your textField26 (you might have to fiddle a bit 
with .get/Current/Original/Target, see the docs for qx.event.type.Data).

 From there you are hopefully able to get to the selectbox. I'm not sure 
what the 'status' of a selectbox is for you, but with .getSelected() you 
should be able to get the currently selected item.

HTH,
Thomas

Thomas Bückemeyer wrote:
> Hello Fabian,
>
> yes you are right: The error occurs, because in the 
> this.textField26.addListener I affected another Listener, which tries to 
> change the content of a selectbox, which is changed in the listener of 
> textField26.
> Is there a possibilty to check the status of a selectbox in a handler? 
>   I think it has todo with hasState().
>
> Kind Regards
> Thomas
>
>
> Fabian Jakobs schrieb:
>   
>> Thomas Bückemeyer schrieb:
>>     
>>> Hi,
>>>
>>> I am working with qooxdoo sdk 8.2.
>>>
>>> I don't understand the behavior of a "changeValue"-Listener in my 
>>> Application. When I initialize the appication the following handler only 
>>> executed the first line.
>>>
>>> The function "this.someFunction" changed the Value of another Selectbox, 
>>> but not of the Selectbox "textField26".
>>>
>>> -----
>>>   this.textField26.addListener("changeValue", function(e) {
>>>       this.debug("change Value!");
>>>       this.someFunction (someParameter1, someParameter2, someParameter3 );
>>>      this.debug("Value changed!");
>>>    }, this);
>>> -----
>>>
>>> When I changed the selectbox again,  all three commands will be 
>>> executed. When I chagend the Selectbox again, only  the first line was 
>>> executed. And so on...
>>>
>>> Is there a problem with calling a function in a handler? When I comment 
>>> out the second line, the handler works allways fine.
>>>   
>>>       
>> My guess would be that the second line throws an exception and causes 
>> the last line not to be called. If you have Firebug installed this is 
>> signaled by a red warning symbol in the browser status bar.
>>
>>
>> Best Fabian
>>
>>     
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>   

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to