I am trying to use flash remoting with a cfform and a cfrid on the flash
cfform. I can send the grid data to the remote function and cfdump contents of
the grid without any issues.
But when I use another remote function to change the contents of the cfgrid and
then try to call the same remote function again I get an error. unsupporrted
type found in stream
Everything works until I call the funtion to return another query to the grid.
That functions works.. You see the new data in the grid, but when i try to send
the new data i get the error.
What is different about a grid that is first populated with a cfquery on page
load and a cfgrid that has been updated with a remote cfc call?
Here is the code I am using to send the contents of the cfgrid to the remote
function.
<cfsavecontent variable="SendGrid">
<cfoutput>
//create connection
var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection("http://#cgi.HTTP_HOST#/flashservices/gateway/");
//declare service
var myService:mx.remoting.NetServiceProxy;
</cfoutput>
//put the controls in scope to avoid calling _root
var qccteamgrid = qccteamgrid;
var returnvalue = returnvalue;
//make an object that will handle the response
var responseHandler = {};
returnvalue.text = "";
//function that receives the response
responseHandler.onResult = function( results: Object ):Void {
//when results are back, populate the cfgrid
returnvalue.text=results;
}
//function that receives any error that may have occurred during the call
responseHandler.onStatus = function( stat: Object ):Void {
//if there is any error, show an alert
alert("Error while calling cfc:" + stat.description);
}
//get service. First parameter is path to component and
//the second it's the object that will handle the response
myService =
connection.getService("flashservices.gateway.qccflashRemotingResponder",
responseHandler );
//make call
myService.UpdateAttendees(qccteamgrid.dataProvider);
</cfsavecontent>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216899
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54