hello 

following code part is including the two list boxes and the form controller
i mentioned 
before:
 
        ........
        var lbox1 = new qx.ui.form.List();
        var control1 = new qx.data.controller.List(null, lbox1);
        control1.setLabelPath("text");
        var url1 = "path_to_json_file";
        var store1 = new qx.data.store.Json(url1);
        store1.bind("model.cont", control1, "model");
        win.add(lbox1, {row:1, column:0, rowSpan:2});
         ........
        var lbox2 = new qx.ui.form.List();
        var control2 = new qx.data.controller.List(null, lbox2);
        control2.setLabelPath("text");
        control1.bind("selection[0].cont", control2, "model");
        lbox2.setRequired(true);
        win.add(lbox2, {row:1, column:1, rowSpan:2});
        .........
        var modelSkel = {param1: null, param2: null };
        var modell = qx.data.marshal.Json.createModel(modelSkel);
        var cont = new qx.data.controller.Object(modell);
        cont.addTarget(lbox2, "selection", "param1", true);
        .........

and the json file has basically same structure with the one used in the
example. i only replaced label names and values.         


-- 
View this message in context: 
http://n2.nabble.com/data-binding-question-tp4694961p4707548.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to