This is the correct syntax, sorry, my just submitted example was wrong.
Cheers,
Fritz
On Tue, 11 Aug 2009, Guilherme Aiolfi wrote:
> Have you tried:obj.setUserData("index", VALUE);
> obj.getUserData("index"); /// that should return VALUE
>
> On Tue, Aug 11, 2009 at 8:38 AM, skar <[email protected]> wrote:
>
>> Hi Fritz,
>>> getLabel(), setLabel are methods to access the label of the SelectBox.
>>> setUserData() and getUserData() are methods you can use with all/most
>>> widgets (inherited).
>>>
>>> The idea is, to implement the old SelectBox-behaviour (with both a label
>> and
>>> an 'index' for each item) by using set/getUserData.
>>>
>>> I am not sure, that I like this, but it certainly works.
>>>
>> Thanks. Using the label works now. You mean, use the data for storing
>> the index?
>>
>> However, if I set user data and then get it immediately back, I get
>> "null". I'm using trunk version 19793. Probably a bug?
>>
>> cheers,
>> skar.
>>
>> --
>> --
>> The life so short, the craft so long to learn.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
--
Oetiker+Partner AG tel: +41 62 775 99 03 (direct)
Fritz Zaucker +41 62 775 99 00 (switch board)
Aarweg 15 +41 79 675 06 30 (mobile)
CH-4600 Olten fax: +41 62 775 99 05
Schweiz web: www.oetiker.ch
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel