Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
ultrafresh #1
cfarguments wrong order
this is what i am doing...
when i email myself i get this:
struct
AAA1 3
AAB2 1
AAC3 2
Whats up with that???
-- call to the webservice --
<cfset args = structNew()>
<cfset args.A = 2>
<cfset args.B = 1>
<cfset args.c = 3>
<cfinvoke
webservice="http://webservice.xxxxxxx.ca/nick.cfc?wsdl"
method="wsBrowseClass"
returnvariable="aObjectArray"
username="wand"
password="wand057" argumentcollection="#args#">
</cfinvoke>
-- web service --
<cffunction name="wsBrowseClass" access="remote" returntype="array"
output="No">
<cfargument name="aaa1" required="Yes">
<cfargument name="aab2" required="Yes">
<cfargument name="aac3" required="Yes">
<cfmail to="nick@xxxxxxx.ca" from="jamie@xxxxxx.ca" subject="arguments"
type="HTML"><cfdump var="#arguments#"></cfmail>
<cfset class_list = ArrayNew(1)>
<cfreturn class_list>
</cffunction>
ultrafresh Guest
-
Tab Order always greyed out, need to redefine order but can't
I had a check box but then i had to delete it and change it to a text field. now my tab order is all out of whack and I can't seem to set the tab... -
#39542 [NEW]: Search order for include/require wrong in get_include_path
From: snowy at corporatezoo dot com Operating system: Windows XP PHP version: 5.2.0 PHP Bug Type: Scripting Engine problem... -
why wont my to_number work to order my data am I doingit wrong?
This is how I have been trying to do it. select tsk.taskname as task, To_Number( DECODE ( is_number ( substr(tsk.taskname,Instr(tsk.taskname,... -
Table of contents - wrong order
Vicky, I'm having _exactly_ the same problem you are describing, and it's quite icomprehensible to me. Not that that is any comfort to you! But I... -
Making a PDF from multiple files -- Acrobat gets them in wrong order
Whenever I make a PDF from multiple files using the command in Acrobat 6.0.1, Acrobat puts them the wrong order. When I select the group of files... -
basky #2
Re: cfarguments wrong order
try this
<cfset args = structNew()>
<cfset args.AAA1 = 2>
<cfset args.AAB2 = 1>
<cfset args.AAC3 = 3>
basky Guest
-
Ro #3
Re: cfarguments wrong order
Cold Fusion Structures are not Ordered as you would a array, you
cannot expect results in a top to bottom orderand expect to use them
in the same order fashion.
You might want to try building your argument list in a structure
nested inside an array where the array contains the structure items in
the desired order and then the structure contains the additional items
(e.g. name/value pairs)
On Tue, 17 May 2005 16:14:48 +0000 (UTC), "ultrafresh"
<webforumsuser@macromedia.com> wrote:
>this is what i am doing...
>
> when i email myself i get this:
> struct
> AAA1 3
> AAB2 1
> AAC3 2
> Whats up with that???
>
>
>
> -- call to the webservice --
> <cfset args = structNew()>
> <cfset args.A = 2>
> <cfset args.B = 1>
> <cfset args.c = 3>
> <cfinvoke
> webservice="http://webservice.xxxxxxx.ca/nick.cfc?wsdl"
> method="wsBrowseClass"
> returnvariable="aObjectArray"
> username="wand"
> password="wand057" argumentcollection="#args#">
> </cfinvoke>
>
>
> -- web service --
> <cffunction name="wsBrowseClass" access="remote" returntype="array"
>output="No">
> <cfargument name="aaa1" required="Yes">
> <cfargument name="aab2" required="Yes">
> <cfargument name="aac3" required="Yes">
> <cfmail to="nick@xxxxxxx.ca" from="jamie@xxxxxx.ca" subject="arguments"
>type="HTML"><cfdump var="#arguments#"></cfmail>
> <cfset class_list = ArrayNew(1)>
>
> <cfreturn class_list>
>
> </cffunction>Ro Guest
-
ultrafresh #4
Re: cfarguments wrong order
had them named the same at one point....
I don't think it matters what you call them on either side... inside the
function the parameters are assigned values in the order that they are received
and are encapsulated within the function... the name of the varialbe used to
pass into the function is irrelevant.
funny thing is when i only pass in 3 parms it is essentially reversed order
which is crap but atleast predictable... when i tried passing in 4 parms in a
weird order
so if I pass in 3 parms like 1,2,3 i get 3,2,1 but if I pass in 4 parms like
1,2,3,4 I get 3,4,2,1
Isn't that nutty!?!?!?!/
ultrafresh Guest



Reply With Quote

