Daniel Wagner wrote: > Hi, > > > qx.ui.form.SelectBox.getSelection()[i] > > That's the way to do it. The SelectBox has a single selection, so i > should always be 0. This will return the ListItem, so you'll have to > call getModel() on it to get the user-defined value. > > > Regards, > Daniel > > Olivier ZORO-BI schrieb: >> Olivier ZORO-BI wrote: >>> Hi, >>> I just migrated from 0.8.3 to 1.0.1 version. I used the getValue >>> function on a widget (qui.ui.form.TextField, qui.ui.form.TextArea >>> ... ) : widget.getValue(). >>> Now I receive a bug message saying it's not a function. >>> am I wrong? >>> >>> Olivier ZORO-BI >>> >>> ------------------------------------------------------------------------------ >>> >>> >>> 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 >>> >>> >> In facts, this getValue method works for textField and TextArea. But >> does it work for qx.ui.form.SelectBox? or have I to apply it on >> qx.ui.form.SelectBox.getSelection()[i]? >> >> cheers, >> >> Olivier >> >> ------------------------------------------------------------------------------ >> >> >> 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 >> >> > > Hi, I was thinking about it. qx.ui.form.SelectBox.getSelection()[i] returns a ListItem but getModel() of ListItem returns void so I usued getLabel() of qx.ui.basic.Atom which returns a String. I seems to work.
Thanks again, Olivier ------------------------------------------------------------------------------ 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
