Guru,
I think you meant to say that you just want to display the employee
code in the comboBox. If this is the case then you can use
labelFunction property of comboBox to achieve that. LabelFunction
should be like:
private function lblFunction(item:EmpVO):String{
return item.EmpCode;
}
then assign this lblFunction to the LabelFunction property of
comboBox. Something like this:
<mx:ComboBox labelFunction="lblFunction"/>
HTH,
-Ravi
On Mar 29, 5:03 pm, Shaleen Jain <[email protected]> wrote:
> Hi Guru,
>
> Thought the question is not very much clear, what whatever I
> understand is that you have a arraycollection having records of 10 emp
> and you want to show only one emp at a time.
>
> Correct me if you mean something else.
>
> If that is the case, access the emp code and pass it as a dataprovider
> in your combobox, no need to make a new arraycollection.
>
> Let me know if you need something else.
>
> Thanks,
> Shaleen Jainhttp://shaleenjain.blogspot.com
>
> On Mar 26, 2:00 pm, guru <[email protected]> wrote:
>
> > Hi frds
>
> > I want to fill combobox. i have one ArrayCollection in ArrayCollection
> > 10 EmpVO added and i want to fill only employee code which is in
> > EmpVO
>
> > is it possible or i have to create one ArrayCollection and add in it
> > then put this EmployeeArray in combo Dataprovider. any best process
> > for this
>
> > public var EmployeeArray:ArrayCollection = new ArrayCollection(
> > [ {label:"--", data:1},
> > {label:"--", data:2},
> > {label:"--", data:3} ]);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---