Hi everyone, I'm trying to integrate a list object (qx.ui.form.List) with a multiple selection into a form (qx.ui.form.Form). When I use the form controller (qx.data.controller.Form) to work with the data, the list item return only the model of the first selection. Should I use some other controller or is there an easy way to get an array of model values? I extended the current class (qx.data.controller.Form) with a sync flag... but I hope there is a better way. Thanks, Daniel qx.data.controller.Form{ ... createModel : function(sync,includeBubbleEvents) { sync = (typeof sync == "undefined") ? sync : true; ... if (qx.Class.hasInterface(clazz, qx.ui.core.ISingleSelection)) { // use the first element of the selection because passed to the // marshaler (and its single selection anyway) [BUG #3541] if(sync){ itemValue = items[name].getModelSelection()[0] || null; } else { itemValue = items[name].getModelSelection(); } } .... if(sync){ this.setModel(model); } return model; } } |
------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel