On Wed, Oct 7, 2009 at 08:50, Burak Arslan <[email protected]>wrote:
> hi,
>
> we saw that communicating complex (nested) objects makes our life easier in
> some respects. however qooxdoo's remote table implementation lacks support
> for nested objects. a small patch that remedies this problem is attached. it
> applies to the latest trunk.
>
> thanks to this patch, i'm able to write:
>
> table_model.setColumns( ["ID", "Name", "Complex Code"],
> ["id", "name", ["complex_object","code"]]);
>
> where the last column is extracted from rowData["complex_object"]["code"]
>
> awaiting your feedback.
>
Hi Burak,
Although I don't know how you are using your "complex objects", I can see
that in certain cases this might be useful. OTOH, I don't think it's
necessary to patch it in Remote.js. You're patching the getValue() method,
which is a trivial method. Instead of patching it, I recommend that you
subclass qx.ui.table.model.Remote and override the getValue() method to suit
your needs.
Cheers,
Derrell
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel