http://forums.adobe.com/message/2375284
Products
Solutions
Learning
Help
Downloads
Company
Store
Home / Support /
Forums
Login / Register Search Forums
Up to Discussions in Flex
This Question is Answered
2 "helpful" answers available (5 pts)
ACTIONS
View print preview
3 Replies
Hello all I am trying to use RemoteObject for populating a combobox. Here's my value object and mxml code....
// Value Object Class: dataVO.as package com.mycomp { [RemoteClass(alias="datavO")] [Bindable] public class dataVO { public var data_id:int; public var data_name:String; public var data_type:String; } }
// ActionScript code private function getAuthors(event:Event):void { // setup the remoteobject here serviceRO.getData.addEventListener(ResultEvent.RESULT, resultListener); } private function resultListener(event:Event):void { dgrid1.dataProvider = event.result as Array; // works perfectly combo1.dataProvider = event.result.data_name as Array; // displays empty combob } <!-- MXML Code --> <mx:ComboBox id="combo1" /> <!-- I want to populate names here --> <mx:DataGrid id="dgrid1" />
1. Nov 7, 2009 5:20 AM in response to: Shivik Re: Populate ComboBox from RemoteObject data I am happy for now. I found out that this can be done by using the property labelField
Shivik
90 posts since Apr 15, 2009
1 of 2
13-07-2011 PM 09:23
http://forums.adobe.com/message/2375284
Choose your region Copyright 2011 Adobe Systems Incorporated. All rights reserved.
Careers Permissions and trademarks EULAs Report piracy Contact Adobe Security Jive Software
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).
2 of 2
13-07-2011 PM 09:23