Yeah, sorry, createCursor(), and findAny, findFirst, or findLast, which
if they return true, leaves the cursor.current on the item found.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tony Alves
Sent: Sunday, September 16, 2007 6:56 PM
To: [email protected]
Subject: Re: [flexcoders] Searching array for item

 

Is it createCursor(), Alex?

Alex Harui wrote:
>
> getItemIndex takes an item, which you can find() in a getCursor() on 
> the collection.
>
> 
>
> ----------------------------------------------------------
>
> *From:* [email protected]
<mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] 
> *On Behalf Of *candysmate
> *Sent:* Sunday, September 16, 2007 1:28 PM
> *To:* [email protected] <mailto:flexcoders%40yahoogroups.com>

> *Subject:* [flexcoders] Searching array for item
>
> 
>
> I wish to search an ArrayCollection for a match to the text in a
> textInput component and then set the selectedIndex of a dataGrid to
> the result.
>
> I tried:
>
> invoiceApprovalGrid.selectedIndex =
> adviceApprovalCollection.getItemIndex(approveAdviceNumber.text);
>
> without success. Any pointers most welcomed.
>
> 

 

Reply via email to