Hi Andrew,

that's right, please use this.operator.getSelection()[0] to get the 
selected ListItem. To get the value from the ListItem, call getLabel().

Cheers,
Chris



Am 18.01.2010 17:07, schrieb phill54:
> Hi Thomas,
>
> if this.operator is an instance of qx.ui.form.SelectBox you'll receive the
> current selection by
> this.operator.getSelection()
> getSelection will return an array of widgets.
> maybe this.operator.getSelection()[0].getValue() is what you've been looking
> for.
>
> best regards,
> phill54
>
>
>
> Andrew Thomas wrote:
>    
>> that this.operator is actually a selectbox. Should I be using something
>> other than getValue() like in .Net I would use selectedValue
>>
>> On Mon, Jan 18, 2010 at 4:19 AM, Christian Schmidt<
>> [email protected]>  wrote:
>>
>>      
>>> Hi Andrew,
>>>
>>> I seems to me that "this.operator.getValue()" doesn't exist, could you
>>> please check that "this.operator" contains the correct reference to a
>>> instance which has the "getValue()" method.
>>>
>>> Cheers,
>>> Chris
>>>
>>> Am 17.01.2010 22:53, schrieb Andrew Thomas:
>>>        
>>>> I am doing a tutorial to get myself acclimated with qooxdoo howeve I
>>>> keep getting this error
>>>>
>>>> object doesn't support this project or method
>>>>
>>>> Here is the code where i am getting the error
>>>>
>>>> switch(this.operator.getValue()) {
>>>>                  case "add": r = v1+v2; break;
>>>>                  case "subtract": r = v1-v2; break;
>>>>                  case "multiply": r = v1*v2; break;
>>>>                  case "divide": r = v1/v2; break;
>>>>              }
>>>>          
>>>
>>> --
>>> Christian Schmidt
>>> Software Entwickler
>>>
>>> 1&1 Internet AG - Web Technologies
>>> Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
>>> [email protected]
>>>
>>> Amtsgericht Montabaur / HRB 6484
>>> Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
>>> Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr.
>>> Oliver
>>> Mauss, Jan Oetjen
>>> Aufsichtsratsvorsitzender: Michael Scheeren
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Throughout its 18-year history, RSA Conference consistently attracts the
>>> world's best and brightest in the field, creating opportunities for
>>> Conference
>>> attendees to learn about information security's most important issues
>>> through
>>> interactions with peers, luminaries and emerging and established
>>> companies.
>>> http://p.sf.net/sfu/rsaconf-dev2dev
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>        
>> ------------------------------------------------------------------------------
>> Throughout its 18-year history, RSA Conference consistently attracts the
>> world's best and brightest in the field, creating opportunities for
>> Conference
>> attendees to learn about information security's most important issues
>> through
>> interactions with peers, luminaries and emerging and established
>> companies.
>> http://p.sf.net/sfu/rsaconf-dev2dev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>>      
>    


-- 
Christian Schmidt
Software Entwickler

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
[email protected]

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to