RE: [flexcoders] Re: okay, so I can't beleive that......

2005-06-10 Thread Allen Manning





Craig,

Can you try calling the RO in AS using an anon object in 
the call rather than MXML. Also, just drop the type attribute for now in 
your CFC while you are debugging.

...

Thrust_Query({ThrustName:thrustCB.selectedItems})

...

cfargument name="ThrustName" required="no" 


Check the NetConnection Debuggerfor any 
activity.

Some Resources:

http://tomlink.net/blog/index.cfm?mode=entryentry=BBFE84D5-7E97-A3B0-EE0B2DC292F5272F

http://www.richinternet.de/blog/index.cfm?entry=74BA931D-C3DA-FDE0-C7959146205942DA


HTH,
Allen


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Craig 
NewrothSent: 09 June 2005 15:01To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: okay, so I 
can't beleive that..

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 knowdo 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 dont 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: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819iSent: Wednesday, June 08, 2005 12:12 
  PMTo: 
  flexcoders@yahoogroups.comSubject: [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 
  /cffunctionHere 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 flexcoders@yahoogroups.com, "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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  On Behalf Of 
  cnewroth55 Sent: Wednesday, 
  June 08, 2005 11:36 AM To: 
  flexcoders@yahoogroups.com 
  Subject: [flexcoders] okay, so I can't beleive 
  that.. 
   
okay, so i can't beleive that I cannot pass multiple 
  valuse into a  RO tagI 
  have a list control, it is being fed from an array,  multiple selections are set to truei 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 

RE: [flexcoders] Re: okay, so I can't beleive that......

2005-06-09 Thread Craig Newroth



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 knowdo 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819iSent: Wednesday, June 08, 2005 12:12 PMTo: flexcoders@yahoogroups.comSubject: [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 /cffunctionHere 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 flexcoders@yahoogroups.com, "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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Wednesday, June
 08, 2005 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] okay, so I can't beleive that..okay, so i can't beleive that I cannot pass multiple valuse into a  RO tagI have a list control, it is being fed from an array,  multiple selections are set to truei 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="#FF" textRollOverColor="#33" /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 

RE: [flexcoders] Re: okay, so I can't beleive that......

2005-06-09 Thread Mercer, Dustin










Ok, I think this question needs to go to
someone who knows CF. I answered it with my Best Guess J. Im sorry I cant
be of more help, but I am strictly a Java developer. I dont know CF at
all. I dont know if you still want to see an example in Java or not,
but if so, let me know. 



Dustin Mercer 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Newroth
Sent: Thursday, June 09, 2005 6:49
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
okay, so I can't beleive that..







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 knowdo 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 dont 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:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819i
Sent: Wednesday, June 08, 2005
12:12 PM
To: flexcoders@yahoogroups.com
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 flexcoders@yahoogroups.com, 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: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of cnewroth55
 Sent: Wednesday, June 08, 2005 11:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] okay, so I can't
beleive that..
 
 
 
 okay, so i can't beleive that I cannot pass
multiple valuse into a 
 RO tagI have a list control, it is being
fed from an array, 
 multiple selections are set to truei 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=#FF textRollOverColor=#33
 /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