RE: Call cfscript inside cfc - its possible?

2005-09-26 Thread Andy Matthews
You should be able to use any CF function inside a CFC. I think though that you might have it flipped around. Are you trying to use a custom function, which you have created, inside cfscript? If so, then as long as you've defined the function and instantiated it, you should be able to call it

Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Barney Boisvert
You don't have implicit access to the request's 'variables' scope inside a CFC instance. You'll need to move the UDF into a scope where the CFC internals can reference (request, application, etc.). Though I wouldn't recommend doing it that way. A better route would be to put your UDF in a

Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Dave Carabetta
On 9/26/05, Michel Deloux [EMAIL PROTECTED] wrote: Hi all It's possible to call cfscript functions(application.cfm's living) inside cfc component? I'm calling this function PrepareSearch and CF returns an error: Variable PrepareSearch is undefined. The error occurred in

Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Tony
i do one of two things... http://www.revolutionwebdesign.com/blog/index.cfm?mode=entryentry=F198C61E-A5EF-DAA0-5EC6F1AB9C7357F7 or for the link impaired... http://www.antiwrap.com/?724 or, what i do, is refactor the udf, into a new component or function of the cfc im using, and then i have it

Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Michel Deloux
Thanks all. Works fine now. Do you know how? Simple. Raymond Camden answers for us: http://ray.camdenfamily.com/index.cfm?mode=entryentry=395FCD72-D363-A830-680B85D89C078C0A After create an utility cfc and insert: cfcomponent output=false cfset init() cffunction name=init