I think dataProvider=responseRows is right.

Add diagnostics to the labelfunction to make sure it gets called once per row 
at creation time and why it returns blank sometimes.


On 8/14/10 12:20 PM, "MicC" <[email protected]> wrote:








Hi Alex,

var cBox:ComboBox = new ComboBox;
cBox.dataProvider = responseRows;
cBox.labelFunction = cBoxLabelFunction;

private function cBoxLabelFunction(item:Object):String{
 var msRS:Namespace= new Namespace( 
"urn:schemas-microsoft-com:xml-analysis:rowset");
var test1:String = item.msRS::MEMBER_NAME;
return test1;
}

gets me part of the way there, as I end up with blank rows in the comboBox that 
show the correct MEMBER_NAME text when the mouse is over them .... I think 
maybe cBox.dataProvider = responseRows is incorrect but cBox.dataProvider = 
responseRows.msRS does not work. What should the dp be? TIA,

Mic.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com> , Alex 
Harui <aha...@...> wrote:
>
> LabelFunction?
>
>
> On 8/13/10 9:59 PM, "MicC" <chigwel...@...> wrote:
>
>
>
>
>
>
> <row xmlns="urn:schemas-microsoft-com:xml-analysis:rowset" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"; 
> xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"; 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>  <CATALOG_NAME>
>  CubesDev
>  </CATALOG_NAME>
>  <CUBE_NAME>
>  Cube1
>  </CUBE_NAME>
>  <DIMENSION_UNIQUE_NAME>
>  [Dim Division] .....
>
> The XMLList contains multiple XML rows in the above format. To access e.g. 
> CATALOG_NAME for row 3 I have to:
>
> var responseRows:XMLList= (the data);
> var msRS:Namespace= new Namespace( 
> "urn:schemas-microsoft-com:xml-analysis:rowset");
> var name:String = String((responseRows.msRS::CATALOG_NAME)[3]);
>
> Is there any way I can code labelField = something.CATALOG_NAME against this 
> XMLList or do I have to more transformation? TIA,
>
> Mic.
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to