Using a VirtualSelectBox or SelectBox the input data model must be like a
list. For your model json to be consider like list should be structure like
this: 

http://demo.qooxdoo.org/current/demobrowser/#data~JsonToList.html
http://demo.qooxdoo.org/current/demobrowser/resource/demobrowser/demo/data/list.json

Then you can group or sort the values as you wish.
In your case, could be something like this:

For example :

{
  "items": [
    {"name": "John Doe", "name_type":"literal", "user": "John_Doe_URI",
"user_type": "uri"},
     ...
  ]
}

var store = new qx.data.store.Json(url);
      store.bind("model.items", selectBox, "model");

selectBox.setLabelOptions({
        converter : function( model) {
          return  model.getName() + " " + model.geUser();
        }
  });



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Loading-data-into-a-SelectBox-tp6344780p6347146.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to