Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Invoking a component

0 views
Skip to first unread message

rudodoo

unread,
Aug 14, 2009, 2:34:09 PM8/14/09
to
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

unread,
Aug 19, 2009, 1:26:31 PM8/19/09
to
<cfset BusAsses = createobject("component",
"#application.CFCPath#Components.BusAsses") />
<cfset ftnChkApprRet = BusAsses.ftnChkAppr(enter_value_here) />
0 new messages