Hi,

I changed my sourcecode now, but the result is, that the first column of the
table is filled with single chars. These are the chars of my string. 
Can you tell me how to write this string from the request to an array to be
able to extract the single values from the string? Example: [1999,34.4]


Sourcecode:

        var doc = this.getRoot();

        var req = new
qx.io.remote.Request("https://localhost:4711/rest/tabelle";, "GET",
"text/plain");

        req.addListener("completed", function(e) {
            alert(e.getContent());     
            // result =
[["Jahr","Wert"],[1999,34.4],[2000,45.0],[2001,199.0]]         

            var data = e.getContent();
            alert(typeof(data));
            // result = string
            
            var test = new qx.data.Array;            
            
            var tableModel = new qx.ui.table.model.Simple();
            tableModel.setColumns(["Jahr", "Wert"]);
            tableModel.setData(e.getContent());
            var table = new qx.ui.table.Table(tableModel);
            doc.add(table);                                                     
  
        });

        req.send();       


Thanks...
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/json-data-into-table-tp6036150p6039492.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to