It was just an example code. Normaly I'll use some xml data which is retrieved by httprequest

Then I have:

var xmldata; /* filled by httprequest */

var rows = xmldata.selectNodes("row");
for( var i=0;i<=rows.length;i++) {
   var row = rows[i];
   var id    = row.selectSingleNode("id").text;
   var file  = row.selectSingleNode("file").text;

   ld.push({id: id, file: { text: file}});
}

So after this I can simply get the id from selected rows.

My goal is to replace ActiveWidgets grid ;-)

Btw: How can I create a checkbox column? Is this possible? Or even a editable text column?


Sebastian Werner schrieb:

Dietrich Streifert schrieb:

so cut out from List_View_1.html i would write something like:

  var idArray = [];

  /* after this idArray is filled with reasonable values */

ld.push({ id : idArray[i], name : { text : "File " + i }, size : { text : Math.round(Math.random()*100) + "kb" }, type : { text : lt[t] }, modified : { text : "Nov " + Math.round(Math.random() * 30 + 1) + " 2005" }, rights: { text : "-rw-r--r--" }});


I don't know why you have the need for a seperate "idArray". Normally you can handle all this stuff directly in the array which you use as the input for the QxListView. But it looks not so bad. You can define any property here. If it is visible only depends on the fact if you have a column with the same name.

Sebastian



Is this correct?

Sebastian Werner schrieb:

Dietrich Streifert schrieb:

Hello Darryl,

good question!

Here is another one: normaly when using a listview as a database table representation for the user we have to carry some id information data which are usualy invisible for the user (eg. the ID or foreign keys of a table row). So when a user does some manipulation on the listview data (deleting,changing,drag and drop copy) I want to be able to retrieve this invisible data in order to identify the data set affected by the manipulation.

How do we create invisible columns? Or maybe better: how can we store user defined properties in a listview row?



just add this key-value pair to your entries in your array. You need not to add a column with this name.

Sebastian


Darryl Pye schrieb:

Hi all

I am a bit stuck

i was tryng to return an array of data for a row in a list view when it is double clicked,

I can return the  whole list view but not  the row selected,
i have tried  using getPane
but cannot seem to get it to work.

I am using rendered branch

Any assistance would be aprreciated,

Regards,
Darryl

_________________________________________________________________
Start something musical - 15 free ninemsn Music downloads! http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=667&referral=HotmailTaglineNov&URL=http://www.ninemsn.com.au/startsomething



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel







-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to