Nice! Thanks!
-deech
On Fri, Oct 29, 2010 at 12:36 PM, Derrell Lipman <
[email protected]> wrote:
> On Fri, Oct 29, 2010 at 13:30, aditya siram <[email protected]>wrote:
>
>> Hi all,
>> I have an array of objects each with a unique index and the additional
>> properties a,b,c and d. However I want to put only a and b in a table, but
>> if a user selects a row(s) I would like to return a reference to the
>> original object. The only way I can think to do this currently is to
>> (1) extend the table model and maintain an additional array of unique
>> indices.
>> (2) give the entire object to the table model, but set some properties as
>> hidden.
>>
>> Is there a more elegant solution or pattern available in Qooxdoo?
>>
>
> If you're using a traditional row array data, with no id values, then any
> columns in your model after the last one defined for your model will be
> retained with the data but never displayed. You can access them using the
> rowdata field (I think that's what it's called) of the cellinfo map, in the
> renderer, or by gaining access to a row of data from your model using the
> methods provided with the model.
>
> If you're using id values in your data, so your rows are maps instead of
> arrays, any members of the map that don't correspond with column ids will be
> similarly non-rendered but accessible as above.
>
> Derrell
>
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel