all groups > macromedia flash flash remoting > january 2004 >
You're in the

macromedia flash flash remoting

group:

Put a CF struct into a Flash Datagrid


Put a CF struct into a Flash Datagrid fragnrock
1/16/2004 4:03:36 PM
macromedia flash flash remoting:
I have some problems putting the content of a coldfusion structure into a datagrid component.

If I use this AS code, Nothing appears :

function freestruct_Result(result){
//mydrid is my datagrid component
mygrid.dataProvider = result;
}

My cfc component looks like this :

<cfcomponent>
<cffunction access="remote" name="freestruct" returntype="struct">
<CFSET mastruct = structNew()>
<CFSET mastruct.frag = "test">
<CFSET mastruct.fru = "actif">
<CFSET mastruct.nanotroll = "inactif">
<CFSET mastruct.dadou = "membre">
<CFSET mastruct.clo = "rouleur">
<CFSET mastruct.stephane = "test">
<CFSET mastruct.mcFly = "truc">
<CFSET mastruct.monsteur = "essai">
<cfreturn mastruct>
</cffunction>
</cfcomponent>


But in the manual I read that the dataprovider property of a datagrid accepts associative arrays.
So, how can I do to put a structure into a datagrid



Re: Put a CF struct into a Flash Datagrid yacko!
1/16/2004 10:41:28 PM
Did you find a solution to this? I am having the same issue.

AddThis Social Bookmark Button