What is your RO expecting as a parameter?  An array or a single object?  selectedItems is an array so you must set your RO to accept an array as a parameter.  What is the Thrust_Query method signature?

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55
Sent: Wednesday, June 08, 2005 11:36 AM
To: [email protected]
Subject: [flexcoders] okay, so I can't beleive that......

 

okay, so i can't beleive that I cannot pass multiple valuse into a
RO tag....I have a list control, it is being fed from an array,
multiple selections are set to true....i have tried SEVERAL
different ways to pass the 'selectedItems' property to my Remote
Object tag...see below
the cfc call (obvious parts removed):
<cffunction name="Thrust_Query" returntype="query" output="true"
access="remote">
<cfargument name="ThrustName" required="no" type="string" >
(have tired every thing in the type for this piece)

the function;

var revResult:Object;
function one(myEvent:Object):Void
{
revResult=myEvent.result;
} //Thanks Matt Boles

the list control

<mx:List dataProvider="{link2Data}"
change="gvsQueriesRO.Thrust_Query.send()" id="thrustCB"
multipleSelection="true" width="250" toolTip="Select from this list
to get an overview. Hold the control key down to select multiple
items." alpha="0" color="#FFFFFF" textRollOverColor="#33FFFF">
</mx:List>
the RO tag:
<mx:RemoteObject source="gvs._cfc.Copygvs_queries" id="gvsQueriesRO"
endpoint="http://mydomains.com/flashservices/gateway" >
<mx:method name="Thrust_Query" result="one(event)" >
<mx:arguments>
<ThrustName>{thrustCB.selectedItems}</ThrustName>
</mx:arguments>
</mx:method>     
</mx:RemoteObject>
no matter WHAT I do tyring to use this returns squat!
if i change just this in the mx:arguments tag it works,
<ThrustName>{thrustCB.selectedItem}</ThrustName>
(so that i am only using a single value)...if I change the RO to a
web service then using 'selectedItems' will work. I am convinced
that you cannot make a call to a CFC using a RO with
the 'selectedIems' property, maybe a bug, has ANYONE been able to do
this? any insights or code would be MUCH appreciated...I want the
performance of an AMF vs the SOAP, but.....








Yahoo! Groups Links

Reply via email to