In a calling page:
cfset theObject = CreateObject(component,dynamictest).init(James)
cfset theMethodToCall = myFunction
cfset theObject.myMethod = theObject[theMethodToCall]
cfset myResult = theObject.myMethod(hello)
cfoutput#myResult#/cfoutput
Does anyone know why in CF you can't do
I know using evaluate is a no-no, but I'm stumped on how to restate this line
of code:
cfset methodResults = evaluate(theObject.#url.methodCall#(#args#))
Any help would be appreciated.
~|
Adobe® ColdFusion® 8 software 8 is
Can't be done in a regular cfset
cfinvoke component=#theObject# method=#url.methodCall#
argumentcollection=#args# returnvariable=methodResults /
On Thu, Jun 19, 2008 at 4:14 PM, Brad Haas [EMAIL PROTECTED] wrote:
I know using evaluate is a no-no, but I'm stumped on how to restate this line
of
cfinvoke component=#theObject# method=#url.methodCall#
argumentCollection=#args# returnvariable=methodResults/
--
João Fernandes
http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)
Thanks Matt João. I appreciate your help.
cfinvoke component=#theObject# method=#url.methodCall#
argumentCollection=#args# returnvariable=methodResults/
--
João Fernandes
http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)
Actually it can, technically speaking, although why you'd do this is beyond me:
In dynamictest.cfc:
cfcomponent
cffunction name=init access=public returntype=dynamictest
cfargument name=someProperty type=string required=yes
cfset
This is done frequently in frameworks that use controllers (ie model glue)
-mark
Mark A. Kruger, CFG, MCSE
www.coldfusionmuse.com
-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2008 8:42 PM
To: CF-Talk
Subject: Re: How can I restate
: Thursday, June 19, 2008 8:42 PM
To: CF-Talk
Subject: Re: How can I restate this without using EVALUATE?
Actually it can, technically speaking, although why you'd do this is beyond
me:
--
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog
8 matches
Mail list logo