This information is nice but it still doesn't tell us what we can DO with getSelectedItems(). In one of the demo's I think I saw that you can do a getSelectedItems().getData(), but no information on what you can DO with the returned data. I would love to see some code snippet showing how to access the second fields data of the second row selected assuming that 3 rows were selected. A simple alert would do. All of my ListViews are dynamically created at run time and I have no idea at design time what fields are going to be in a ListView so I need to be able to access the information generically. I tried to do something like getSelectedItems().getData()[0], trying to reference the first row selected but got a _javascript_ error. There really is no information in the demos that tell you how to manipulate the raw data. The examples that move data from one grid to another never drill down into the data, the leave it as a whole entity. So far I have read as many posts as I can and looked at the demos but I see no information that is relevant to what I need to do. Someone out there has had to have done this before and can show others how it's done.

Thanks,
Jim

On 4/20/06, Benjamin Reitzammer <[EMAIL PROTECTED]> wrote:
Hi,

mohamed_halim wrote:
> Hello everybody,
>
> I want to know how can we get the selected Item ok a Tree or a ListView a
> use it properties for a copy operation per example.
>
> I've tried to use the QxSelectionManager as this :
>
> var treeSource = new QxTree("/");
>
>       var manager = new QxTreeSelectionManager(treeSource);

The QxTree class has a "built-in" selection manager. You don't have to
set/create an extra instance.

Simply call

treeSource.getManager().getSelectedItems()

to get the selected items of the tree.
For the QxListView class you can call

var listview = new QxListView(dataArray, headerData);
listview.getPane().getManager().getSelectedItems();

to get the selected items of the listview.

Take a look at the examples on the qooxdoo site for even more
information on how this works
http://qooxdoo.oss.schlund.de/public/demo/example/index.html or
http://qooxdoo.oss.schlund.de/public/demo/test/index.html

Cheers

Benjamin


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to