I just tried using the groupid and subtracting 1 so it would match the
combobox index and that seems to be working just fine. Thank you for
the help.

Chris

--- In [email protected], "christopherjdunn" <[EMAIL PROTECTED]> wrote:
>
> I had a typo in that code, it should be getItemAt.
> 
> The groupid that is returned from the dataprovider don't match the
> index (witch is 0 through x). I suppose i could do groupid + -1 to try
> and match that to the index the combebox uses. Maybe i will give that
> a try.
> 
> The 1.5 code i got from the CFFORM real estate example that was made
> awhile back and that worked like charm.
> 
> Chris
> 
> --- In [email protected], "Tracy Spratt" <tspratt@> wrote:
> >
> > I am not doing 2.0 yet, but that is very strange 1.5 code to
navigate a
> > ComboBox.
> > 
> > First rowCount is not the number of items of data, it is the number of
> > visible rows in the control.  What if there are more items than
visible
> > rows? 
> > 
> > Why are you not working with the dataProvider?  If
> > [EMAIL PROTECTED] is an integer and specifies the index
> > of the item you want in the combo box, just do:
> > 
> > grouplist.selectedIndex = [EMAIL PROTECTED];
> > 
> > If I have misunderstood what you are doing, never mind.
> > 
> > Tracy
> > 
> > 
> > -----Original Message-----
> > From: [email protected]
[mailto:[EMAIL PROTECTED] On
> > Behalf Of christopherjdunn
> > Sent: Thursday, April 06, 2006 2:23 PM
> > To: [email protected]
> > Subject: [flexcoders] ComboBox qquestion
> > 
> > I have a combobox whose datasourse is a CF CFC. This is working just
> > fine. What i'm trying to do is select a particular item in the
> > combobox based upon a node that is select in a Tree. The following
> > code is what i use in a CF flash form, which works fine (Flex 1.5).
> > Looking at the docs, i can not find any replacement code for the
> > "getItemIndex". Any help would be great.
> > 
> > public function changeCollection() {
> >     for (var i:Number = 0; i < grouplist.rowCount; i++) {
> >             if (grouplist.getItemIndex(i) ==
> > [EMAIL PROTECTED]) {
> >                     grouplist.selectedIndex = i;
> >                     break;
> >             }
> >     }
> > }
> > 
> > Chris
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> > Yahoo! Groups Links
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to