I've got the table showing up but the values are not showing up. I'm fetching
data via json and trying to put it in a table.
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() {
console.log(jsonFetcher.getModel().toArray());
__tableModel.setData(jsonFetcher.getModel());
}, this);
jsonFetcher.setUrl(url);
var table = new qx.ui.table.Table(__tableModel).set({
decorator: null
});
The table shows up with 7 rows and the first column of each row has this in it:
Please use 'toArray()' to see the content.
Here's the JSON response (from Firefox's Firebug):
[["2011-12-28", "8.0", "12:33:42", "13:21:56"],
["2011-12-27", "7.3", "11:44:06", "16:50:21"],
["2011-12-22", "7.5", "0:05:06", "14:32:39"],
["2011-12-21", "7.5", "9:43:15", "23:55:22"],
["2011-12-20", "7.5", "10:29:35", "17:54:10"],
["2011-12-19", "7.3", "16:08:12", "17:49:58"],
["2011-12-16", "7.4", "0:03:44", "13:25:49"]]
What's the last step here in order to get the table populated correctly?
I shouldn't have to call toArray on each row individually???
Thanks!
Scott
The content of this email does not necessarily represent the views/opinions of
my employer, Masco Corporation. If you are not the intended recipient of this
email, please let me know since that means it got to you in error. Please
delete it from your computer system since it may contain privileged or
confidential information intended for someone else.
Masco does its best to eliminate viruses and other malicious software in emails
and attachments coming through its servers and so cannot be held responsible if
malicious software is inadvertently imbedded in this communication.------------------------------------------------------------------------------
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