Macromedia Flash Server - DataProvider / Flash Remoting question

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > July 2005 > DataProvider / Flash Remoting question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author DataProvider / Flash Remoting question
Michael D. Randolph

2005-07-19, 5:45 pm

I'm in the middle of developing on application that:

=20

1. Receives data via an ASPX page in XML format
2. Moves the XML into a DataProvider using the DataProvider API
3. Allows user to "rearrange" data

=20

The last step here, is to save the data. I'd like to send the
DataProvider as a RecordSet to Flash Remoting. Is this possible? Or am
I stuck converting it back to XML, then sending it to Remoting as a
string or something?

=20

Michael Randolph

=20


=-----------------------------------------------------------
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

JesterXL

2005-07-19, 5:45 pm

If you get it as a DataSet, it'll be a DataSet when you send it back. I
believe Remoting (1 and 2) somehow transpose the datatype to .NET/ASPX; not
sure how, but basically, in the past when I was getting datasets, I'd just
edit their data, and then send back over the wire and the .NET guys were
cool with it; assuming the same for ASPX.

----- Original Message -----
From: "Michael D. Randolph" <mrandolph-BLI8p3VsWNHtqXgxI/4nyg@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, July 19, 2005 9:54 AM
Subject: [FlashComm] DataProvider / Flash Remoting question


I'm in the middle of developing on application that:



1. Receives data via an ASPX page in XML format
2. Moves the XML into a DataProvider using the DataProvider API
3. Allows user to "rearrange" data



The last step here, is to save the data. I'd like to send the
DataProvider as a RecordSet to Flash Remoting. Is this possible? Or am
I stuck converting it back to XML, then sending it to Remoting as a
string or something?



Michael Randolph




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


=-----------------------------------------------------------
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

Michael D. Randolph

2005-07-19, 5:45 pm

But right now its part of a DataProvider API...is this the same as a
DataSet? I see the DataSet class has a .dataProvider property. Can I
set this equal to my dataProvider and just send it over to .NET like
that?

Michael Randolph

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of JesterXL
Sent: Tuesday, July 19, 2005 10:00 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] DataProvider / Flash Remoting question

If you get it as a DataSet, it'll be a DataSet when you send it back. I

believe Remoting (1 and 2) somehow transpose the datatype to .NET/ASPX;
not=20
sure how, but basically, in the past when I was getting datasets, I'd
just=20
edit their data, and then send back over the wire and the .NET guys were

cool with it; assuming the same for ASPX.

----- Original Message -----=20
From: "Michael D. Randolph" <mrandolph-BLI8p3VsWNHtqXgxI/4nyg@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, July 19, 2005 9:54 AM
Subject: [FlashComm] DataProvider / Flash Remoting question


I'm in the middle of developing on application that:



1. Receives data via an ASPX page in XML format
2. Moves the XML into a DataProvider using the DataProvider API
3. Allows user to "rearrange" data



The last step here, is to save the data. I'd like to send the
DataProvider as a RecordSet to Flash Remoting. Is this possible? Or am
I stuck converting it back to XML, then sending it to Remoting as a
string or something?



Michael Randolph




Supported by Fig Leaf Software - http://www.figleaf.com

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailma...fo/flashcomm=20


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm



=-----------------------------------------------------------
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

hank williams

2005-07-19, 5:45 pm

I have never actually used XML in the way you are doing it, but I have
alot of experience doing the same thing with regular database info.
For database info there is the RDBMS resolver. This figures out what
has been changed in your local dataset and prepares a deltapacket that
can be sent to a server to tell it what has changed.

For XML data there is an XUpdateResolver, which does the same thing
for XML data.The resolver figures out what has changed and creates an
XUpdate record that describes the changes that have been made to an
xml file. Here's what livedocs says about it:

XUpdate is a standard for describing changes that are made to an XML
document and is supported by a variety of XML databases, such as
Xindice and XHive. The XUpdateResolver component translates the
changes made to a DataSet component into XUpdate statements. The
updates from the XUpdateResolver component are sent in the form of an
XUpdate data packet, which is communicated to the database or server
through a connection object. The XUpdateResolver component gets a
delta packet from a DataSet component, sends its own update packet to
a connector, receives server errors back from the connection, and
communicates them back to the DataSet component--all using bindable
properties.

Regards
Hank


On 7/19/05, Michael D. Randolph <mrandolph-BLI8p3VsWNHtqXgxI/4nyg@public.gmane.org> wrote:
> I'm in the middle of developing on application that:
>=20
>=20
>=20
> 1. Receives data via an ASPX page in XML format
> 2. Moves the XML into a DataProvider using the DataProvider API
> 3. Allows user to "rearrange" data
>=20
>=20
>=20
> The last step here, is to save the data. I'd like to send the
> DataProvider as a RecordSet to Flash Remoting. Is this possible? Or am
> I stuck converting it back to XML, then sending it to Remoting as a
> string or something?
>=20
>=20
>=20
> Michael Randolph
>=20
>=20
>=20
>=20
> -----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> -----------------------------------------------------------
>=20
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>


=-----------------------------------------------------------
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

JesterXL

2005-07-19, 5:45 pm

Naw... if you could forego the XML altogether, it'd be better; just send
DataSets back and forth.

Anyway, here's something to try; make one of these:

mx.remoting.RecordSet

And send that back and see how ASPX likes it.

----- Original Message -----
From: "Michael D. Randolph" <mrandolph-BLI8p3VsWNHtqXgxI/4nyg@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, July 19, 2005 10:03 AM
Subject: RE: [FlashComm] DataProvider / Flash Remoting question


But right now its part of a DataProvider API...is this the same as a
DataSet? I see the DataSet class has a .dataProvider property. Can I
set this equal to my dataProvider and just send it over to .NET like
that?

Michael Randolph

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of JesterXL
Sent: Tuesday, July 19, 2005 10:00 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] DataProvider / Flash Remoting question

If you get it as a DataSet, it'll be a DataSet when you send it back. I

believe Remoting (1 and 2) somehow transpose the datatype to .NET/ASPX;
not
sure how, but basically, in the past when I was getting datasets, I'd
just
edit their data, and then send back over the wire and the .NET guys were

cool with it; assuming the same for ASPX.

----- Original Message -----
From: "Michael D. Randolph" <mrandolph-BLI8p3VsWNHtqXgxI/4nyg@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, July 19, 2005 9:54 AM
Subject: [FlashComm] DataProvider / Flash Remoting question


I'm in the middle of developing on application that:



1. Receives data via an ASPX page in XML format
2. Moves the XML into a DataProvider using the DataProvider API
3. Allows user to "rearrange" data



The last step here, is to save the data. I'd like to send the
DataProvider as a RecordSet to Flash Remoting. Is this possible? Or am
I stuck converting it back to XML, then sending it to Remoting as a
string or something?



Michael Randolph




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


=-----------------------------------------------------------
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



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


=-----------------------------------------------------------
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

Michael D. Randolph

2005-07-19, 5:45 pm

I have no choice in what kind of data I'm receiving. It has to be XML.
I've written the app to put the XML into a dataProvider...really what I
need to know is, what is the simplest way to get the data back to my
server (via Remoting, if possible).

Michael Randolph

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of JesterXL
Sent: Tuesday, July 19, 2005 10:05 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] DataProvider / Flash Remoting question

Naw... if you could forego the XML altogether, it'd be better; just send

DataSets back and forth.

Anyway, here's something to try; make one of these:

mx.remoting.RecordSet

And send that back and see how ASPX likes it.

----- Original Message -----=20
From: "Michael D. Randolph" <mrandolph-BLI8p3VsWNHtqXgxI/4nyg@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, July 19, 2005 10:03 AM
Subject: RE: [FlashComm] DataProvider / Flash Remoting question


But right now its part of a DataProvider API...is this the same as a
DataSet? I see the DataSet class has a .dataProvider property. Can I
set this equal to my dataProvider and just send it over to .NET like
that?

Michael Randolph

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of JesterXL
Sent: Tuesday, July 19, 2005 10:00 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] DataProvider / Flash Remoting question

If you get it as a DataSet, it'll be a DataSet when you send it back. I

believe Remoting (1 and 2) somehow transpose the datatype to .NET/ASPX;
not
sure how, but basically, in the past when I was getting datasets, I'd
just
edit their data, and then send back over the wire and the .NET guys were

cool with it; assuming the same for ASPX.

----- Original Message -----=20
From: "Michael D. Randolph" <mrandolph-BLI8p3VsWNHtqXgxI/4nyg@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, July 19, 2005 9:54 AM
Subject: [FlashComm] DataProvider / Flash Remoting question


I'm in the middle of developing on application that:



1. Receives data via an ASPX page in XML format
2. Moves the XML into a DataProvider using the DataProvider API
3. Allows user to "rearrange" data



The last step here, is to save the data. I'd like to send the
DataProvider as a RecordSet to Flash Remoting. Is this possible? Or am
I stuck converting it back to XML, then sending it to Remoting as a
string or something?



Michael Randolph




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


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm



Supported by Fig Leaf Software - http://www.figleaf.com

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailma...fo/flashcomm=20


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm



=-----------------------------------------------------------
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

Stefan Richter

2005-07-19, 5:45 pm

Well the Dataprovider is like an Array isn't it so just send that, Remoting
can deal with Arrays but you may have to manually 'dissect' it a bit
serverside.
I often deal with loosely related data in flash and Remoting and most time I
just package it all up into an Array and fire it off rather than sending 5
or 6 arguments.

I think I remember that an associative Array from within flash can be
accessed by CF Remoting as array or struct.

Stefan



-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Michael D.
Randolph
Sent: Tuesday, July 19, 2005 3:11 PM
To: FlashComm Mailing List
Subject: RE: [FlashComm] DataProvider / Flash Remoting question

I have no choice in what kind of data I'm receiving. It has to be XML.
I've written the app to put the XML into a dataProvider...really what I need
to know is, what is the simplest way to get the data back to my server (via
Remoting, if possible).

Michael Randolph

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of JesterXL
Sent: Tuesday, July 19, 2005 10:05 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] DataProvider / Flash Remoting question

Naw... if you could forego the XML altogether, it'd be better; just send

DataSets back and forth.

Anyway, here's something to try; make one of these:

mx.remoting.RecordSet

And send that back and see how ASPX likes it.

----- Original Message -----
From: "Michael D. Randolph" <mrandolph-BLI8p3VsWNHtqXgxI/4nyg@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, July 19, 2005 10:03 AM
Subject: RE: [FlashComm] DataProvider / Flash Remoting question


But right now its part of a DataProvider API...is this the same as a
DataSet? I see the DataSet class has a .dataProvider property. Can I
set this equal to my dataProvider and just send it over to .NET like
that?

Michael Randolph

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of JesterXL
Sent: Tuesday, July 19, 2005 10:00 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] DataProvider / Flash Remoting question

If you get it as a DataSet, it'll be a DataSet when you send it back. I

believe Remoting (1 and 2) somehow transpose the datatype to .NET/ASPX;
not
sure how, but basically, in the past when I was getting datasets, I'd
just
edit their data, and then send back over the wire and the .NET guys were

cool with it; assuming the same for ASPX.

----- Original Message -----
From: "Michael D. Randolph" <mrandolph-BLI8p3VsWNHtqXgxI/4nyg@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, July 19, 2005 9:54 AM
Subject: [FlashComm] DataProvider / Flash Remoting question


I'm in the middle of developing on application that:



1. Receives data via an ASPX page in XML format
2. Moves the XML into a DataProvider using the DataProvider API
3. Allows user to "rearrange" data



The last step here, is to save the data. I'd like to send the
DataProvider as a RecordSet to Flash Remoting. Is this possible? Or am
I stuck converting it back to XML, then sending it to Remoting as a
string or something?



Michael Randolph




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


=-----------------------------------------------------------
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



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


=-----------------------------------------------------------
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



=---------------------------------------------------------
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


=-----------------------------------------------------------
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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com