have you tried casting the result as a Recordset?
var rs:RecordSet = Recordset(re.result);
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx]On
Behalf Of Michael D.
Randolph
Sent: 26 April 2005 16:58
To: FlashComm Mailing List
Subject: RE: [FlashComm] Flash Remoting + Recordset...how do I use it?
If I take all of my data types out, everything seems to work fine. I'd
like to declare the result as a RecordSet though...is this not possible?
It looks like this now:
function GetPresentationData_Result(re):Void {
trace (re.result.getLength());
}
But I'd like to use data types, so it should look like this:
function GetPresentationData_Result(re:ResultEvent):Void {
var rs:RecordSet = re.result; //returns "Type mismatch in
assignment statement: found Object where mx.remoting.RecordSet is
required."
trace (rs.getLength());
}
Michael Randolph
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx] On
Behalf Of Michael D.
Randolph
Sent: Tuesday, April 26, 2005 11:50 AM
To: FlashComm Mailing List
Subject: [FlashComm] Flash Remoting + Recordset...how do I use it?
I have a .NET function returning a DataTable to a flash client. As far
as I know, this should get converted to a RecordSet before it gets to
the client. I get the ResultEvent just fine, but when I try to cast the
result as a RecordSet, it tells me that is an invalid data type and that
it is expecting an object. How do I return a DataTable from a .NET
function and receive it as a recordset in Flash Remoting? (preferably
the AS2 iteration of FR)
Michael Randolph
This e-mail and any attached files are for the exclusive use of the addressee
and may contain privileged and/or confidential information. If you receive this
e-mail in error you should not disclose the contents to any other person nor
take copies but should delete it and telephone us immediately on +44(0)20 7440
1100.
TEQUILA\ London Limited does not make any warranty as to the accuracy or
completeness of this e-mail and we accept no liability for its content or use.
Any opinions expressed in this e-mail are those of the author and do not
necessarily reflect the opinions of TEQUILA\ London Limited.
TEQUILA\ London Limited operates within the parameters set by the Data
Protection Act 1998 with regard to the use of personal information including
e-mail addresses. We accept no liability for the forwarding of this e-mail to
other parties that may result in unsolicited e-mails being received by those
whose email addresses appear in this e-mail.
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|