-----Derrell Lipman <[email protected]> wrote: -----

      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);
  

The "loaded" event from a qx.data.store.Json object is of 
type "qx.event.type.Data". That event type has a "data" property which contains 
the event data. I'm not sure what format the model is returned in, but I'd 
expect you to be able to do this:  

      jsonFetcher.addListener(  
        "loaded",
        function(e)   
        {
          __tableModel.setData(e.getData());
        }, 
        this);
  

Derrell

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.
Derrell,
Thanks for the help. I did:

console.log(e.getData())
then:
__tableModel.setData(e.getData());

The log shows "Please use toArray() to see the content" ....

The setData gave me an error in the console.log:

this.__rowArr[rowIndex] is undefined
  return this.__rowArr[rowIndex][columnIndex];

It would be very nice if the producers and consumers of data in this framework 
were compatible without this fiddling!

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

Reply via email to