Change the CFC to this
<cfcomponent returntype="query">
<cffunction name="getEmp" access="remote">
<cfargument name="lastName" required="true">
<cfset var empQuery="">
<cfquery name="empQuery" datasource="OLO">
SELECT *
FROM owners
WHERE family_name = '#arguments.lastName#'
</cfquery>
<cfreturn empQuery>
</cffunction>
</cfcomponent>
Then with the Invoke
<cfinvoke component="olo.cfc.SearchOwners" method="getEmp"
returnvariable="qResult">
<cfinvokeargument name="lastName" value="#form.lastname#"/>
</cfinvoke>
qResult would then be your query... from the cfc: returntype="query"
<cfoutput query="qResult">
#Blah# <BR />
</cfoutput>
On Fri, Oct 17, 2008 at 6:15 PM, mikeashields <[EMAIL PROTECTED]>wrote:
> No, I was simply following the cited example wherein the results were to be
> displayed by the submitting form page as returned by the cfc.
>
> Ironically, my next question (after getting the example to work) was going
> to be how to direct the results to a different page for display). However,
> I know understand that you should/need to that cfm (the result display
> page)
> and have it invoke the cfc using the form data.
>
>
> As I have your attention though, I am looking up how to display the results
> of the:
> ------------------------------------------------
>
> <cfinvoke component="olo.cfc.SearchOwners" method="getEmp"
> returnvariable="qResult">
> <cfinvokeargument name="lastName" value="#form.lastname#"/>
> </cfinvoke>
>
>
> <body>
>
> #qResult.family_name# HOW TO LOOP THESE RESULTS???
>
> </body>
>
> -----------------------------------
>
> insofar as <cfloop query= . . . . and <cfquery=. . . does not work.
> This
> may be really basic but I am fairly novice (as if my newbie-ness is not
> abundantly clear yet). Thanks in advance
>
> --
> View this message in context:
> http://www.nabble.com/form-info-to-a-cfc-tp20041166p20041904.html
> Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314080
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4