I am trying to do a search screen that includes a comboBox control. I
want to query the database to retrieve the valid values the user can
select, but also want to include a default value of "All Widgets" at
the beginning of the comboBox. I am able to use the prompt property
to have my first value added, but only if I have a literal list that I
have defined (i.e. not using a model). Any ideas of the best way of
doing this?
<script stuff>
var first_widget = [{label:"All Widgets", data:""}];
</script stuff>
<mx:Model id="WidgetModel">
{Widget.getWidgets.result}
</mx:Model>
<mx:ComboBox id="cboWidgets" dataProvider="{WidgetModel}" height="22"
prompt="{first_role}"/>
Thanks!
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/