i have tried every combination of the "Type" that I can, now the <cffunction has a returntype that i had set to query, so I will try array there, but am not hopeful that will work...
will let you know....do you have any examples of a RO accepting mutlitple data and returning results? If so then please send, maybe I am missing something else..
thanks,
Craig


"Mercer, Dustin" <[EMAIL PROTECTED]> wrote:

Ok sorry, I thought he was going to Java not CFC.  A method signature is just what the method is expecting and what it is returning.  Basically how you typed the function.  I.E. a java method signature looks like this : private static void someFunction( String param1, String param2 ).

 

I don�t know if I have enough knowledge to help you with CF, but here goes�  Looks like your CF code should look like this :

 

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>

Look at the cold bolded and red.  This code should look like this if you want to use selectedItems:

            <cfargument name="ThrustName" required="no" type="array" >

 

You have to make sure your query will support an array though�  You may have to change the way you are doing this to include some code to parse the array.  I would really have to see what you are doing to explain better.  Hopefully this was enough of an explanation to help you.

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819i
Sent: Wednesday, June 08, 2005 12:12 PM
To: [email protected]
Subject: [flexcoders] Re: okay, so I can't beleive that......

 

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! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.

Yahoo! Groups Links

Reply via email to