On Thu, Dec 29, 2011 at 13:24, Scott Chapman <[email protected]> wrote:
> Here's my current code:
>
>
> var __tableModel = new qx.ui.table.model.Simple();
> __tableModel.setColumns([ "Date", "DelayAvg", "First", "Last" ]);
>
> var url = "/avg_checkin_times/" + label;
> var jsonFetcher = new qx.data.store.Json(null);
> jsonFetcher.addListener("loaded", function(e) {
> __tableModel.setData(e.getData().toArray());
>
> }, this);
> jsonFetcher.setUrl(url);
>
> var table = new qx.ui.table.Table(__tableModel).set({
> decorator: null
> });
>
> I'm still getting a table with the right number of rows but the first
> column says "please use toArray() to see the content.
>
Ok, so apparently the internal components are qx.data.Arrays as well.
Must you use the new Rest transport to retrieve your data? If you can use
the old transports, they won't do any of this qx.data.Array conversion
stuff...
Let's see what you really have here... Please add the following inside of
your "loaded" handler, and post the output. (You'll need to rerun the
generator, of course, to include the Debug class.)
qx.dev.Debug.debugObject(e.getData().toArray());
Derrell
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel