Hi,
var test = new qx.data.controller.List(test, this.__testSB, "item[1]");

just omit the "item" in front of the [1] and it works:

var data = [["a", "1"], ["b", "2"], ["c", "3"]];
var model = qx.data.marshal.Json.createModel(data);

var list = new qx.ui.form.List();
this.getRoot().add(list);

var c = new qx.data.controller.List(model, list, "[1]");


Btw. just changing the label path to "[0]" during runtime for example switches 
the content to the first element of the array.

Regards,
Martin
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to