Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / General CF Topics / August 2009



Tip: Looking for answers? Try searching our database.

Invoking a component

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rudodoo - 14 Aug 2009 19:34 GMT
I know how to invoke a component using the cfinvoke tag.  However,
could someone show me an example of how to do it with the createObject
function.  I'm a llittle confused on how to use it.

I have a cfinvoke example here that just returns a query

<cfinvoke
component="#application.CFCPath#Components.BusAsses"
method="ftnChkAppr"
returnvariable="ftnChkApprRet">
    <cfinvokeargument name="AOPMMPosNbr" value="enter_value_here"/>
</cfinvoke

How would I invoke the same component using  the CreateObject method
Chris Blackwell - 19 Aug 2009 18:26 GMT
<cfset BusAsses = createobject("component",
"#application.CFCPath#Components.BusAsses") />
<cfset ftnChkApprRet = BusAsses.ftnChkAppr(enter_value_here) />

> I know how to invoke a component using the cfinvoke tag.  However,
> could someone show me an example of how to do it with the createObject
[quoted text clipped - 10 lines]
>
> How would I invoke the same component using  the CreateObject method
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.