I have a problem using this code
http://tinyurl.com/364u4px
I have inserted alert() in the converter function of form controller
.addTarget method. So, changing selection of selectbox leads to 3 alert
windows: 2 first with model item and third with some number.
Why so?
--
View this message in
My example is here
http://tinyurl.com/2uvvegk
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/How-to-select-an-item-in-selectbox-tp5029330p5045274.html
Sent from the qooxdoo mailing list archive at Nabble.com.
try
var list = [{name: Arizona, id: 1},{name: Kansas, id: 2}];
var selectBox = new qx.ui.form.SelectBox();
var model = qx.data.marshal.Json.createModel(list);
var controller = new qx.data.controller.List(model, selectBox, name);
this.getRoot().add(selectBox);
var data = {state:2};
var
I have one selectbox, described as:
var list = [{name: Kansas, id: 1},{name: Arizona, id: 2}];
var selectBox = new qx.ui.form.SelectBox();
var model = qx.data.marshal.Json.createModel(list);
var controller = new qx.data.controller.List(model, selectBox, name);
I want to select an item in
yes, try
var list = [{name: Kansas, id: 1},{name: Arizona, id: 2}];
var selectBox = new qx.ui.form.SelectBox();
var model = qx.data.marshal.Json.createModel(list);
var controller = new qx.data.controller.List(model, selectBox, name);
this.getRoot().add(selectBox);
rsantiagopaz wrote:
yes, try
var list = [{name: Kansas, id: 1},{name: Arizona, id: 2}];
var selectBox = new qx.ui.form.SelectBox();
var model = qx.data.marshal.Json.createModel(list);
var controller = new qx.data.controller.List(model, selectBox, name);
check the example
http://tinyurl.com/2v28sn2
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/How-to-select-an-item-in-selectbox-tp5029330p5032629.html
Sent from the qooxdoo mailing list archive at Nabble.com.
As I use .addTarget method of qx.data.controller.Object. It need to pick
target object and it's property (for example property value for the
textBox):
addTarget(Object targetObject, String targetProperty, String sourceProperty,
Boolean bidirectional?, Map options?, Map reverseOptions?)
What the