Try casting the result to an Array ...
myArray= mx.utils.ArrayUtil.toArray(event.result);
It worked for me in a similar case ...
Title: Message
Hi,
I type
casted the result as you have suggested here. But still my datagrid does not
display the values.
import
classes.ItemSpecVO;
var
itemSpecVO:ItemSpecVO;var myArray:Array;var
itemSpecVO1:ItemSpecVO;var specdata_arr;
function
You are going to need a labelFunction to do this, instead of columnName.
private function lblfArray0(oItem:Object):String {
return oItem.colSpecData[0];
}
mx:DataGridColumn headerText=A
labelFunction=lblfArray0 width=50 textAlign=left/
Tracy
-Original Message-
if you set it correctly.
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Parekh, Shweta - BLS CTR
Sent: Monday, October 03, 2005
4:53 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders]
Populating values in datagrid from arrays
Hi
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Populating values in datagrid from arrays
The problem is that when your getdata()
function executes you set specdata_arr equal to a single value instead of an
array then you repeat that step 4 times.
Also, unless your array has
5 matches
Mail list logo