----- Original Message -----
Sent: Friday, June 04, 2004 6:04 PM
Subject: [KCFusion] Flash Remoting
question
Hi,
I have a Flash application in which a RecordSet
is created. Using Flash Remoting the appliation connects to a cfc and I
want to transfer the RecordSets in order to update/insert into a database
table.
The connection is working and "something" is
being transfered. However, there isn't any data in the Structure of the
cfc. The documentation that I've found only shows string data being
passed from Flash.
My question: Is it possible to send a
RecordSet or Object from Flash to a cfc or do I really have to send data as a
string?
The following code works without error, but the
value inserted into the table is "No Data".
action script code...
myService.setAvailableData(res,
SendData);
cfc code...
<cffunction name="setAvailableData"
access="remote" returntype="string">
<cfargument
name="SendData" required="yes">
<cfif
StructIsEmpty(SendData)>
<cfset Records = "No
Data">
</cfif>
<cfquery
name="SetAvail"
datasource="IntranetSupportTest">
insert into SC_FlashOutput (Test) values
('#Records#')
</cfquery>
<cfset ReturnString = "The Data was
received">
<cfreturn ReturnString>
</cffunction>
Thanks,
Shelley