Ask a Question related to Coldfusion Component Development, Design and Development.
-
SilentBob'secretfusion #1
passing structures using cfinvoke.
Quick question.
Can I create a structure in a cfc and then return in? If so does anyone have a simple example. Thanks.
SilentBob'secretfusion Guest
-
CFInvoke Tag... dumb question
Hi, I would like to know if the CFInvoke tag is available for all versions of CF or just CFMX7? Is it supported on a default install? If not,... -
CFINVOKE
Hi, I've a problem invoking 2 cfc's in one function which has same return variable. please see the below code. my question is how does it affect... -
CFINVOKE Web Services Problem
First to say I know nothing about SOAP, XML etc but need to connect to a webservice. Running the attached code just generates a HTTP/1.1 405 Method... -
cfinvoke calling web service
I'm having trouble consuming a web service with cfinvoke. The service is called fetchUserInfo. Here is what I'm trying to use: <cfinvoke... -
using cfinvoke
Can I use <!--- file abc.cfc---> <cfcomponent> <cffunction> <cfquery> </cfquery> <cfreturn xyz> </cffunction> </cfcomponent> -
Bill Sahlas #2
Re: passing structures using cfinvoke.
This function returns a structure. The structure is made up of strings and
a query.
<cffunction name="cfhttpmydomainphonelist" returntype="struct"
output="true">
<cfargument name="myuserfname" required="yes"/>
<cfargument name="myuserlname" required="yes"/>
<cfhttp url="http://mydomain/IT/IntTools/Phones/PhoneList.txt"
method="get" name="phonelist"
columns="LastName,FirstName,Extension,Cell,Pager,C ubeLocation,DateModified"/>
<cfquery name="phonelist" dbtype="query">
SELECT *
FROM phonelist
WHERE Lower(LASTNAME) like <cfqueryparam value =
'#lcase(arguments.myuserlname)#' CFSQLType = "CF_SQL_VARCHAR">
AND Lower(FIRSTNAME) like <cfqueryparam value =
'#lcase(arguments.myuserfname)#%' CFSQLType = "CF_SQL_VARCHAR">
</cfquery>
<cfscript>
results = StructNew();
StructInsert(results, "statuscode", cfhttp.statuscode);
StructInsert(results, "query", phonelist);
StructInsert(results, "recordcount", phonelist.recordcount);
</cfscript>
<cfreturn results>
</cffunction>
"SilentBob'secretfusion" <webforumsuser@macromedia.com> wrote in message
news:cv2c9b$7lc$1@forums.macromedia.com...> Quick question.
>
> Can I create a structure in a cfc and then return in? If so does anyone
> have a simple example. Thanks.
>
>
Bill Sahlas Guest



Reply With Quote

