I could be very wrong, because I'm pretty new to Flex. But it's my understanding that a method called on a RemoteObject needs to send multiple arguments as an array. You actually are sending multiple arguments. You just can't pass them as a usual list of arguments, one after another.
On Thu, Jul 3, 2008 at 10:24 AM, 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 [email protected] <flexcoders%40yahoogroups.com>, nwebb >> <[EMAIL PROTECTED]> 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() >> > { >> > } >> > >> > } >> > } >> > >> >> > > -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560

