From: Alessandro C. *sephiroth* <ale...@se...> - 2003-09-27 10:58:29
|
Hi Justin, great work.. I have a question about the component. If i work in this way: ============== import org.amfphp.remoting.NetServices dp = [] dp[0] = {} dp[0].ID = 1 dp[0].name = "Alessandro" dp[0].cell_phone = "3389965665" dp[1] = {} dp[1].ID = 2 dp[1].name = "Giuseppe" dp[1].cell_phone = "N/A" dp[2] = {} dp[2].ID = 3 dp[2].name = "Edward" dp[2].cell_phone = "+398899566" NetServices.setDefaultGatewayUrl('http://64.207.157.121/flashservices/gateway.php') nc = NetServices.createGatewayConnection() serv = nc.getService('TestClass', this) serv.echoArray(dp[0]) function echoArray_Result(data){ wxGrid.dataProvider = data } ============== everything works fine, data is returned as I send to the php class and the dataGrid is populated. But if i use the RemotingConnector component: ================= dp = [] dp[0] = {} dp[0].ID = 1 dp[0].name = "Alessandro" dp[0].cell_phone = "3389965665" dp[1] = {} dp[1].ID = 2 dp[1].name = "Giuseppe" dp[1].cell_phone = "N/A" dp[2] = {} dp[2].ID = 3 dp[2].name = "Edward" dp[2].cell_phone = "+398899566" wxGrid.setSize(300,300) wxGrid.resizableColumns = true rem.params = dp rem.trigger() =========================== and I set the result to bind the dataProvider object of the dataGrid it doesn't work. In fact, if I watch in the variables, the result object in the Remoting component is this: data:[object #183, class 'Object'] { ID:1, name:"Alessandro", cell_phone:"3389965665" }, which is only a part of the sent Array. Am I confusin in the usage of the component? Alessandro Crugnola [sephiroth] Flash | PHP Developer http://www.sephiroth.it Team Macromedia Volunteer for Flash http://www.macromedia.com/go/team Flash-php mailing list http://www.flash-php.it/index.php?ml=fpcoders&action=subscribe ----- Original Message ----- From: "Justin Watkins" <ju...@24...> To: <amf...@li...> Sent: Friday, September 26, 2003 3:18 PM Subject: Re: [amfphp] MX 2004 Remoting Components > Very true, I'll make that change. Thanks for pointing that out. > > Justin > > ----- Original Message ----- > From: "atomgas" <at...@we...> > To: <amf...@li...> > Sent: Friday, September 26, 2003 4:18 AM > Subject: Re: [amfphp] MX 2004 Remoting Components > > > Hallo > > great work, works perfect for me, > > only one thing I think is not so lucky > this line is inside of the RemotingConnector constructor > > Object.registerClass("RecordSet", org.amfphp.remoting.RecordSet); > > but if you dont use the RemotingConnector the binding AMF->AS for the > Recordset is not done. > > I think it would be better > to have the line inside of > org.amfphp.remoting.NetServices.createGatewayConnection > because this is the part one always have to use and so it would make sure > that the Recordset gets serialized always (write?) > > mfg > Luzifer Altenberg > > > > At 22:00 25.09.2003, you wrote: > >I've got a nice version of the remoting components working for MX 2004. > > > >I converted all of the sources to AS 2 classes so you can use them from > >within other class files. > >I built a RemotingConnector which allows you to use the IDE and the data > >binding panels to map the data. > >I rebuilt the RecordSet class and the RSDataProvider to use the new > >DataProvider model. (Extending Array, instead if internal item). > >Cleaned up tons of the code and hopefully commented it well. > > > >I have spent very little time testing any of this, so when you do find a > >bug, feel free to fix it and/or let me know about it. All of the source > >files are included plus a simple readme. If you do find and fix a bug > >please let me know and I'll commit it into my cvs and update the links. > > > >http://www.amfphp.org/components/remotingMX2004.zip > > > >or for those mac and linux users > > > >http://www.amfphp.org/components/remotingMX2004.tar.gz > > > >Enjoy. > >Justin > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >Welcome to geek heaven. > >http://thinkgeek.com/sf > >_______________________________________________ > >amfphp-general mailing list > >amf...@li... > >https://lists.sourceforge.net/lists/listinfo/amfphp-general > > **************************************************************************** > A T O M G A S ® > http://atomgas.de > BERLIN::GERMANY > **************************************************************************** > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > amfphp-general mailing list > amf...@li... > https://lists.sourceforge.net/lists/listinfo/amfphp-general > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > amfphp-general mailing list > amf...@li... > https://lists.sourceforge.net/lists/listinfo/amfphp-general > > |