extracting objects with DataTable
- hi everyone,
is there a way to extract the selected row of a DataTable in the form
of an object?
or do I have to keep a record of the order of objects added to the
DataTable and then use the integer(s) returned by getSelectedRows() to
lookup the objects?
congratulations to the development team behind YUI, I'm amazed by its
power and potential.
- The values returned in the array returned by getSelectedRows can be used
with getRecord to retrieve the data from the DataTable itself, you don't
need to keep a copy. getRecord will return a Record object which might have
more information than you might care about. You can use Record's getData
method with no arguments to retrieve a more simple object.
----- Original Message -----
From: "markl9x9" <markl9x9@...>
Sent: Tuesday, March 04, 2008 10:27 PM
> hi everyone,
> is there a way to extract the selected row of a DataTable in the form
> of an object?
> or do I have to keep a record of the order of objects added to the
> DataTable and then use the integer(s) returned by getSelectedRows() to
> lookup the objects?
> congratulations to the development team behind YUI, I'm amazed by its
> power and potential.
> Yahoo! Groups Links
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.4/1309 - Release Date:
> 03/03/2008 18:50