Re: [qooxdoo-devel] SelectBox & Databinding

2009-09-30 Thread MartinWittemann
Hello Daniel, I think i did get what you try to achieve. But a much better solution to this is not really possible. You have two different kind of data in your model. One is the id, which is the model (representative of the item) and the other is the name, which contains UI relevant information. S

Re: [qooxdoo-devel] SelectBox & Databinding

2009-09-30 Thread Daniel Hirtzbruch
Hello Martin, that's what I need: I've got an Array of Datasets (containing a dataset ID and a name), retrieved from a MySQL Database. I need a SelectBox within my form which has to display the name as label and the ID as value on send of the form. What I want to do is bind the chosen data to a m

Re: [qooxdoo-devel] SelectBox & Databinding

2009-09-29 Thread MartinWittemann
Hello Daniel, this code really looks like there should be an easier solution to this. I tried to get your code working in the playground but failed. Could you perhaps explain what you want to achieve? Especially what data you want to have in what property (label, model). If i have that, I think I

[qooxdoo-devel] SelectBox & Databinding

2009-09-29 Thread Daniel Hirtzbruch
Hello guys, I got a question concerning the qx.ui.form.SelectBox and DataBinding. I need to bind label and value of a selectbox to an array. By now I was using the old (deprecated) behavior and wanted to change this. While browsing the list archive I found a somehow complicated solution (this co