Hi Hansjoerg,

Hi Today Hansjoerg Schock wrote:

>
> Sorry for sending the same three times.
> I tried to post with old.nabble.com but it hangs
> I tried again but nothing happens.
> Also I cannot delete the double postings.
>
> Sorry
> regards
> Hansjoerg
>
>
> Hansjoerg Schock wrote:
> >
> > Hello,
> > In a SelectBox the Data is like:
> > selectBoxColor = new qx.ui.form.SelectBox();
> > // Data
> > var data = [{label: "Red", id: 1}, {label: "Blue", id: 2}, {label:
> > "Yellow", id: 3}, {label: "Green", id: 4}];
> > var model = qx.data.marshal.Json.createModel(data);
> >
> > The select box is on an MultiPageForm. If you select on item and click on
> > "next" in the moment only the value (here Id 4 for Green) is shown.
> > What I need is to show the label "Green" on the next page and also I need
> > the ID = 4 for further operations
> > So how can I change the code to display also the Label?
> >
> > you can see the complete code in the playground:
> >
> > http://tinyurl.com/2cz9pn4

in that case I would add both the id and the label to as model:

... {label: "Blue", id: { text: "Blue", value: 2}} ...

I would write a little loop to construct the model for me ...

http://tinyurl.com/6xvxgay

try 'blue'

cheers
tobi


-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to