Turns out at some point my data was going away.
I am afraid I don't know why, but I have managed to fix it.
Seems like the data was getting assigned before the creation complete
phase.
I was also able to get rid of the label function.
I set the labelField.
dataProvider="{dataSetColl}" labelField="DisplayName"
Thanks for you responses.
Joe
--- In [email protected], "kuroiryu42" <[EMAIL PROTECTED]> wrote:
>
> When I trace the code it seems like the label function is working
> great it returns demo as a string yet i see nothing on the comobox.
> What am I missing here?! sooo frustrated.
>
> Another question, how do i get responses to my questions without
> having to search through the all the groups messages?
>
>
> XML1 = <ListDatasetsResponse>
> <Datasets>
> <Dataset id="001">
> <DisplayName>demo</DisplayName>
> <ReportData>
> <Overview />
> <Detail url="/detail1"/>
> </ReportData>
> </Dataset>
> <Dataset id="002">
> <DisplayName>demo2</DisplayName>
> <ReportData>
> <Overview />
> <Detail url="/detail2"/>
> </ReportData>
> </Dataset>
> </Datasets>
> </ListDatasetsResponse>
>
> after the http call comes back i initialize the dataprovider for my
> combobox
>
> dataSetColl = new XMLListCollection( XML1.Datasets.Dataset );
>
> private function boxLabelFuntion(item):String
> {
> return XML(item).DisplayName.valueOf();
> }
>
>
> <mx:ComboBox id="dataSetBox" dataProvider="{dataSetColl}"
> labelFunction="boxLabelFuntion" change="dataSetBoxChange(event)" x="0"
> y="-2" width="201" height="20"></mx:ComboBox>
>
> Thanks,
> Joe
>