Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
GotJosh? #1
Can I call a CFR in a CFC
I am understand I can easily call a cfc in a cfm file and then use the cfreport
tag in the cfm file to call teh template and use the query returned by the cfc
for my report. However what I want to do is a bit different. I would like to
have a function in my cfc that does the query and another function inside cfc
that uses the query to create the report and pass a format argument like PDF or
Flash or Excel Remotely using Flex (flash) Here is my CFC Code, but when i
call it from a cfm file to test it. I get a blank page.
What am i doing wrong?:confused;
<cfcomponent>
<cffunction name="Needs_Query" returntype="query" output="no" access="public">
<cfset var MyQuery="">
<cfquery name="MyQuery" datasource="ProdETT_GVS">
A Cool Query SQL Statement here
</cfquery>
<cfreturn MyQuery>
</cffunction>
<cffunction name="Needs_Report" returntype="any" output="no" access="remote">
<cfargument name="ReportFormat" type="string" required="yes" hint="format
type for report" />
<cfset MyReport = "">
<cfinvoke component="gvs_techneeds" method="Needs_Query"
returnvariable="MyQuery">
<cfreport name="MyReport" template="../_reports/gvs_techneeds.cfr"
format="#ARGUMENTS.ReportFormat#" query="MyQuery" />
<cfreturn MyReport>
</cffunction>
</cfcomponent>
GotJosh? Guest
-
CFC Call Hanging on Second Call
I run the flex application localy using the demo/dev server and do a search using a CFC, and then do another and its fine. But when my boss tries,... -
The best way to call a cfc??
I have read a few things about how to invoke cfc's but it just seems very tidious to develop locally then when I deploy to a development server I... -
call xyz.bat from ASP.net
hi: I would like to know how to call a xyz.bat frile from ASP.net? Can it be done! Thanks amy -
call VBA from ASP
Hi how a VBA macro called in ASP? Thanks. Kamram -
remote call procedure call failed
Also, it says error 1726 "remote call procedure call failed" Help, Unable to save username and password in XP Home edition. It allows me to... -



Reply With Quote

