Of course you can send multiple arguments to a remoting method
(Disclaimer: I know it works with WebORB because I just tried it). You
just need to make sure the method can take multiple parameters and you
are sure of the order in which they arrive.


--- In flexcoders@yahoogroups.com, nwebb <[EMAIL PROTECTED]> wrote:
>
> Thanks yeah that's the solution we're using, but I'm interested to know,
> should that be necessary or should we be able to send 2 arguments in
to a
> remoting method?
> 
> On Thu, Jul 3, 2008 at 2:34 PM, valdhor <[EMAIL PROTECTED]> wrote:
> 
> >   var objectToSend:Object;
> > objectToSend.userId = userId;
> > objectToSend.filterObj = filterObj;
> > var token:AsyncToken = ro.returnOrders(objectToSend);
> >
> >
> > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
nwebb
> > <neilwebb@> wrote:
> > >
> > > Hi,
> > >
> > > I'd like to pass 2 arguments to a remote method called
"returnOrders".
> > > Something like:
> > >
> > > //Flex
> > > var token:AsyncToken = ro.returnOrders(userId, filterObj);
> > >
> > > The first argument is a String called "id" and the second is an
> > Object (see
> > > below for full code).
> > >
> > > The CF guy I'm working with says that if I just send a single object
> > he can
> > > pull it apart and get to the individual properties, but when I send
> > him two
> > > arguments, he can't "break apart" the object (excuse the terminology
> > - his
> > > not mine)
> > >
> > > Any hints and tips much appreciated!
> > >
> > >
> > > Oh, and here is the AS3 filter DTO I'm using.
> > >
> > > package net.quadratek.po.dto
> > > {
> > > [Bindable]
> > > [RemoteClass(alias="qnet2.cfc.remote.purchaseOrder")]
> > > public class FilterDto
> > > {
> > > public var poId:String = "";
> > > public var supplierId:String = "";
> > > public var monthId:String = "";
> > > public var yearId:String = "";
> > > public var projectId:String = "";
> > > public var employeeId:String = "";
> > >
> > > public function FilterDto()
> > > {
> > > }
> > >
> > > }
> > > }
> > >
> >
> >  
> >
>


Reply via email to