Sharmaprateek,
I had the same problem yesterday and I solved in this way:
First, the code where I load the source array.:
for (var i = 0; i < nodesXML.length; i++)
{
Lines.push(
{
id : { text : nodesXML[i].childNodes[0].firstChild.nodeValue },
icon : { source : "images/people.jpg" },
name : { text : nodesXML[i].childNodes[1].firstChild.nodeValue
}
});
}
The Listener:
QxListView.getPane().addEventListener("dblclick", SelItem);
function SelItem()
{
if (Lines.length == 0) { return true };
var selItem = QxListView.getPane().getManager().getSelectedItem();
alert("ID: " + selItem.id.text + " - Name: " + selItem.name.text);
} ^
^
|-- Defined when I loaded --|
the source array
--
View this message in context:
http://www.nabble.com/Listview-Data-Value-tf1896111.html#a5188735
Sent from the qooxdoo-devel forum at Nabble.com.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel