I am helping him on this, what do you mean method signature?
The method is Thrust_Query the argument is ThrustName the web srv
works fine.. the RO does not.
Here is the CFC:
<!--- Thrust Query (Summary) --->
<cffunction name="Thrust_Query" returntype="query"
output="true" access="remote">
<cfargument name="ThrustName" required="no"
type="string" >
<cfset var MyQuery="">
<cfquery name="MyQuery" datasource="somedb">
<!--query removed for security reasons-->
</cfquery>
<cfreturn MyQuery>
</cffunction>
Here is the RO call in flex:
<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>
--- In [email protected], "Mercer, Dustin"
<[EMAIL PROTECTED]> wrote:
> 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
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/