Hey guys and Gals
 
Just thought I would bring this up.
 
I have been scanning through the help documentation and came accross what I would call a very bad error in reference to invoking components using CFSCRIPT.
 
This is what the documentation says to do.
 
==========================================
<cfscript>
  corpQCFC = createObject("component", "corpSecurity");
  tempStruct = structNew();
  tempStruct.username = "skippy"
  tempStruct.password = "dippy"
  corpQCFC.getAuth(argumentsCollention = tempStruct);
</cfscript>
============================================
 
First thing is the miss spelling of the miss spelling of "argumentsCollention".  But thats not all of it.  You actually need to pass "argumentCollection" as a singular, not "argumentsCollection".
 
Now, going by what it has in the documentation, I would say that thats all you need to do, and it will return the result just like using CFINVOKE.  Unfortunalty not.  You need to assign the result to something.
 
Below is the way to do it
 
==========================================
<cfscript>
  corpQCFC = createObject("component", "corpSecurity");
  tempStruct = structNew();
  tempStruct.username = "skippy"
  tempStruct.password = "dippy"
  result = corpQCFC.getAuth(argumentCollection = tempStruct);
</cfscript>
============================================
 
Well there you go.  Do with it what you will.
 

Regards

Steve Onnis
Domain Concept Designs
+61 422 337 685
+61 3 9431 4249

http://www.domainconceptdesigns.com
[EMAIL PROTECTED]
http://www.cfcentral.com.au
[EMAIL PROTECTED]

("If you think it can't be done, you haven't asked me!") - Steve Onnis


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to