Hi,

I currently return an XML File(below) to Flex and have been assigning it to an 
array collection in order to populate a data grid.   As of now i have the 
header Text hardcoded . I want to put it dynamically from the arraycollection 
below, and some timee there are some of the columns need to hide and show 
too.How can i do this? 
 

var xLabels:Array = (Xs[0].label as Array);
labels = new ArrayCollection(xLabels); 

var hObj:Object=new Object();
for (var lObj:int=0; lObj < labels.length; lObj++)
{

hlabel =labels[lObj];
}


public var arrRawData:ArrayCollection = new ArrayCollection();      

__model.arrNewData = event.result.rawdata.record as ArrayCollection;
var xmlResult:XML = XML(event.result);

Any help would be greatly appreciated.

Thanks,
blue





1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:

<rawdata>
<record>
<Service>Ser1</Service>
<Health>1<Health>
<Availability>100%<Availability>
<Risk>2</Risk>
</record>
<record>
<Service>Ser1</Service>
<Health>1<Health>
<Availability>100%<Availability>
<Risk>2</Risk>
</record>
<record>
<Service>Ser1</Service>
<Health>1<Health>
<Availability>100%<Availability>
<Risk>2</Risk>

</record>
<record>
<Service>Ser1</Service>
<Health>1<Health>
<Availability>100%<Availability>
<Risk>2</Risk>
</record>
</rawdata>

Reply via email to