On Fri, Dec 4, 2009 at 11:49 AM, thron7 <[email protected]>wrote:

>  Ken,
>
> I'm not sure I fully get what you are doing, but here is a hint.
>
> First off, you should change the event you are listening on to
> 'changeSelection', I think this is what you're after. Then, the event object
> passed to your event listener will carry the ListItem widget(!), not any
> scalar value like a string or number. So with e.getData() you should get the
> newly selected ListItem, and e.getData().getUserData() should provide you
> with 1234.
>

OK, I've gotten this piece working. The only thing to note (in case anyone
else needs to know this) is that e.getData() returns - not the ListItem -
but a javascript list of ListItems, I guess in case you have multi-select
turned on. So, the proper bit of code for my app reads more like:

e.getData()*[0]* .getUserData('recipeid')

(I can get away with using [0] instead of iterating the list as my lists are
all single-select).

Now, on to the next list that needs this done.....
Thanks,
Ken
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to