Hi qooxdoers,
I'm retreiving data in json format and i want to put that data in a Simple()
data model with the method:
var jsonData = response.getContent();
setData( jsonData );
The problem is that the Json data is an array of object and so the method
doesn't work.
I would like to add directly json data into the table without doing this:
var rows = new qx.data.Array();
for ( var i = 0; i < jsonData.length; i++ ) {
var row = [
jsonData[i].col1,
jsonData[i].col2,
jsonData[i].col3
];
rows.push( row );
}
mytablemodel.setData( rows );
I would like to avoid to select the data manualli for every object, because
Json is an array of objects from what i've learned:
[[object],[object],[object],[object]]
I would like to convert the json data structure in arrays:
[[array],[array],[array],[array]]
so i can use it directly to set data in my table data model.
I guess it's possible i'm just too ignorant to know how i can be done...
Thank you all, expecially to everyone will be so kind to responde me.
Bye!
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Json-and-Table-models-tp5803644p5803644.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel