Hello,
I'm new to qooxdoo. At first: this is an amazing framework!
Now to my question: I try to bind a JSON data store (f.e. persons.json) to some
labels. According to the JsonToList example I created a Controller and a Store
and try to bind the data but I won't work:
Here is my playground example:
var doc = this.getRoot();
var lblName = new qx.ui.basic.Label("test").set({rich: true});
doc.add(lblName, {left:10, top:10});
var url =
"http://demo.qooxdoo.org/current/demobrowser/demo/data/json/persons.json";
var dtaController = new qx.data.controller.Object();
var dtaStore = new qx.data.store.Json(url);
dtaStore.bind("model.persons", dtaController, "model");
dtaController.bind("persons[0].lastname", lblName, "value");
It seems that the bind method cannot access the property "persons[0].lastname".
How do I correctly bind data in my case?
Thanks,
Michael
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel