<mx:LinkBar id="roles_nav" dataProvider="{grouproles}"
labelFunction="roleLabelFunction">
public function roleLabelFunction(item:Object):String
{
switch (item.ROLE)
{
case "Group Administrator":
return "Manage Employees";
break;
case "Group Presenter":
return "Manage Presentations";
break;
}
return "";
}
-TH
--- In [email protected], joe.g.ja...@... wrote:
>
> Thanks, but I would like to be able to update the field name.
>
> <mx:LinkBar id="roles_nav" dataProvider="{grouproles}"
labelField="ROLE">
>
> ex :
>
> ROLE = Group Administrator labelFunction return "Manage Employees"
>
> ROLE = Group Presenter labelFunction return "Manage
> Presentations "
>
>
>
> Joe James
> Sr. Web Developer
> Kaiser Permanente, Pharmacy Training & Development
> (562) 658-3670 / Tie Line: 8-320-3670
>
> NOTICE TO RECIPIENT: If you are not the intended recipient of this
> e-mail, you are prohibited from sharing, copying, or otherwise using
or
> disclosing its contents. If you have received this e-mail in error,
> please notify the sender immediately by reply e-mail and permanently
> delete this e-mail and any attachments without reading, forwarding or
> saving them. Thank you.
>
>
>
>
> "Tim Hoff" timh...@...
> Sent by: [email protected]
> 03/26/2009 03:18 PM
> Please respond to
> [email protected]
>
>
> To
> [email protected]
> cc
>
> Subject
> [flexcoders] Re: linkBar labelFunction
>
>
>
>
>
>
>
>
>
> labelField="myFieldNameInTheArrayCollection"
> -TH
>
> --- In [email protected], "kpjj31" joe.g.james@ wrote:
> >
> > I have a linkBar that uses an arrayCollection as a dataProvider. How
> would I use the lableFunction if there is no viewStack containers.
> >
>