What I've done before is in the result handler for the Remote Object call,
add this to the result before assigning to your ComboBox dataProvider
property.  In other words, in your result handler create a new, in your
case, generic Object with all the same fields and add it to the result then
assign to your ComboBox.  Another way maybe to add a method server-side:
getAllStatesAndAll() that calls getAllStates() and adds the All choice in.

DK

On 10/22/07, Phill B <[EMAIL PROTECTED]> wrote:
>
> Thanks to everyones help, I have zipped right along with my first Flex
> app. Now I'm tying to do one last thing to my comboBoxes and I'm not
> sure how to go about it.
>
> I have a remoteObject call that returns all the states in the database
> that is used as the combobox dataprovider. I need to add the label All
> States with a value of "all" as the first value to select.
>
> I found this link
> http://www.houseoffusion.com/tiny.cfm/155
> But I'm not sure if this is taking me in the right direction. Any
> thoughts?
>
> Thanks
>
> --
> Phil
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4739
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to