Re: CFC Question

2009-09-24 Thread Brian McCairn
component=filename maybe ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326588

Re: CFC Question

2009-09-24 Thread Phillip Vector
tried that. Nope. On Thu, Sep 24, 2009 at 11:35 AM, Brian McCairn brian.mcca...@medicapp.eu wrote: component=filename maybe ~| Want to reach the ColdFusion community with something they want? Let them know on the House of

Re: CFC Question

2009-09-24 Thread Brian McCairn
cfcomponent tags round the cffunction? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: CFC Question

2009-09-24 Thread Brian McCairn
what do you get if you browse to webroot/cfc/filename.cfc?wsdl ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

RE: CFC Question

2009-09-24 Thread Andy Matthews
So you're calling this file from within ColdFusion directly right? What happens if you create it using CreateObject? cfset myCFC = CreateObject('component','cfc.filename') cfset user = myCFC.Read(13204721-3474-8967-4897498740174013) Are you getting an error? andy -Original

Re: CFC Question

2009-09-24 Thread Dan Farrell
Coldfusion user has permission to the file? So you're calling this file from within ColdFusion directly right? What happens if you create it using CreateObject? cfset myCFC = CreateObject('component','cfc.filename') cfset user = myCFC.Read(13204721-3474-8967-4897498740174013) Are you

Re: CFC Question

2009-09-24 Thread Phillip Vector
Yes and cfcomponent name=filename is at the top (and closing). filename.cfc in the cfc directory cfcomponent name=filename cffunction name=Read returntype=Query access=remote cfargument name=UserID type=string cfscriptvar Data=;/cfscript

RE: CFC Question

2009-09-24 Thread Andy Matthews
Errors, yes or no? If CF is seeing it, then you should be getting a response. If it doesn’t see it, then you should get an error. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, September 24, 2009 2:59 PM To: cf-talk Subject: Re: CFC Question

Re: CFC Question

2009-09-24 Thread Azadi Saryev
you do not actually have 2 and 3 as text inside your cfinvoke block, do you? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 25/09/2009 02:30, Phillip Vector wrote: So for the meantime, I've put my cfc directory in the web root on the development server I use. I have the following

Re: CFC Question

2009-09-24 Thread Phillip Vector
yes, but I took them out and it still has the same result. The cfinvoke is not firing I don't think. On Thu, Sep 24, 2009 at 1:31 PM, Azadi Saryev az...@sabai-dee.com wrote: you do not actually have 2 and 3 as text inside your cfinvoke block, do you? Azadi Saryev Sabai-dee.com

Re: CFC Question

2009-09-24 Thread Azadi Saryev
firebug will tell you if it is firing or not. and you do have cfdump var=#user# or another output of USER var after your cfinvoke block, right? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 25/09/2009 04:45, Phillip Vector wrote: yes, but I took them out and it still has the same

Re: CFC Question

2009-09-24 Thread Phillip Vector
Not yet. However, I do have a 4 which isn't showing up (which it would if the file got that far. On Thu, Sep 24, 2009 at 1:53 PM, Azadi Saryev az...@sabai-dee.com wrote: firebug will tell you if it is firing or not. and you do have cfdump var=#user# or another output of USER var after your

Re: CFC Question

2009-09-24 Thread Azadi Saryev
test your page in firefox with firebug installed. look at the Net tab to see if the request to your cfc fires and what it returns, if anything... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 25/09/2009 04:55, Phillip Vector wrote: Not yet. However, I do have a 4 which isn't showing

Re: CFC Question

2009-09-24 Thread Phillip Vector
it, then you should be getting a response. If it doesn’t see it, then you should get an error. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, September 24, 2009 2:59 PM To: cf-talk Subject: Re: CFC Question Yes and cfcomponent name=filename

Re: CFC Question

2009-09-24 Thread Alan Rother
Hey Philip, Is this literally all the code on the page? TestUsers.cfm 1 cfinvoke component=cfc.filename method=Read returnvariable=User 2 cfinvokeargument name=UserID value=13204721-3474-8967-4897498740174013 3 /cfinvoke 4 Nothing else? If so, then, it's working... You just don't have any

Re: CFC Question

2009-09-24 Thread Phillip Vector
That is litterally all the code in the page. It isn't firing the invoke. But I have good news. I have been working with fusebox on this (having double cfc's inthe circuit directory and the root just to be sure) and it wasn't working. I moved it over to it's own folder with no fusebox and I'm

Re: CFC Question

2009-09-24 Thread Alan Rother
Glad you found the issue... however in the future, disclosing a valuable piece of information like, the fact you're running this code inside a fusebox app would have cut this thread down to one or two emails... =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager,

Re: CFC Question

2009-09-24 Thread Phillip Vector
Yeah. I know. I'm not thinking today. Sorry about that. I didn't think it was that much of an issue. I think I'm going to use application.cfc and not try to put in CFC's into the application. It's to frustrating for not enough gain IMHO. On Thu, Sep 24, 2009 at 2:14 PM, Alan Rother

RE: CFC Question

2009-09-24 Thread Andy Matthews
, processing, and offers better performance. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, September 24, 2009 4:19 PM To: cf-talk Subject: Re: CFC Question Yeah. I know. I'm not thinking today. Sorry about that. I didn't think it was that much

RE: cfc question...

2008-06-17 Thread Jason Durham
/DB credentials, and reference that variable when instantiating any components that have to access the DB. -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 3:57 PM To: CF-Talk Subject: RE: cfc question... Ok, let me see if I'm understanding

RE: cfc question...

2008-06-17 Thread Rick Faircloth
- From: Jason Durham [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 11:09 AM To: CF-Talk Subject: RE: cfc question... You don't *have* to use cfinvoke. I prefer not to. Once you have instantiated (created an instance of it in memory) the object like you wrote below... you can 'invoke

RE: cfc question...

2008-06-17 Thread Jason Durham
Yessir. You can supply any arguments you need within those parenthesis. :) -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 1:39 PM To: CF-Talk Subject: RE: cfc question... Thanks, Jason! I'll work on this approach. Seems much simpler

Re: cfc question...

2008-06-17 Thread Mike Kear
[A] One of the good things about cfcs, and its also quite confusing to the beginner, is that there are several ways to code most of the things you want to do. For example, to pass in variables to a method, you can do it this way: cfset qAgent = agentLibrary.get_agent_info( url.agentid ) / Or

RE: cfc question...

2008-06-16 Thread Rick Faircloth
-Talk Subject: Re: cfc question... you can always use: cfinvoke component=dot.delimited.path.to.cfc.from.webroot method=your_cfc_method_name_here ... same dor notation goes for createobject() function and cfobject tag did my first comment not come through on the list yet? i do have

Re: cfc question...

2008-06-16 Thread Mike Kear
I havent seen that article, but I would suggest you put your cfcs in their own area, since you want to re-use them as easily as possible. (Thats one of the big benefits of CFCs). so I'd put them in e:\inetpub\webroot\c21ar\components\sales e:\inetpub\webroot\c21ar\components\agents

Re: cfc question...

2008-06-16 Thread Mike Kear
I think you're nearly there, Rick.Just make sure you are following the rules about how to set out paths for components: if your component is in e:\inetpub\webroot\c21ar\components\agents\agent.cfc and the web root is at e:\inetpub\webroot\c21ar, then you would invoke the component with the

Re: cfc question...

2008-06-16 Thread Mike Kear
Ok syntax error forgot the closing quotes. Make that: cfset agentLibrary = createObject(component,components.agents.agent) / And usually at the top of an object like that (if it's for the kinds of things i think it is) you would have an init() functionthat you tell the component the

RE: cfc question...

2008-06-16 Thread Rick Faircloth
To: CF-Talk Subject: Re: cfc question... you can always use: cfinvoke component=dot.delimited.path.to.cfc.from.webroot method=your_cfc_method_name_here ... same dor notation goes for createobject() function and cfobject tag did my first comment not come through on the list yet? i do

RE: cfc question...

2008-06-16 Thread William Seiter
. ::-Original Message- ::From: Rick Faircloth [mailto:[EMAIL PROTECTED] ::Sent: Sunday, June 15, 2008 9:57 PM ::To: CF-Talk ::Subject: RE: cfc question... :: :: ::I looked over the info and I'm sure I'll end up doing that, ::but I still have to execute the code at some point, which leads ::me back

RE: cfc question...

2008-06-16 Thread Jason Durham
... cfinvoke component=c21-ar.components.agent method=get_agent_info returnvariable=agent_info agent_id=url.agent_id / -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2008 11:57 PM To: CF-Talk Subject: RE: cfc question... I looked over the info

Re: cfc question...

2008-06-16 Thread Carl Von Stetten
] Sent: Monday, June 16, 2008 12:02 AM To: CF-Talk Subject: Re: cfc question... Anyway, what's lame about putting all the cfc's together in a directory where I can find them easily? There is nothing lame about it (you gotta stick them somewhere). What he means is that you

RE: cfc question...

2008-06-16 Thread Rick Faircloth
[mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 10:20 AM To: CF-Talk Subject: RE: cfc question... Did you get it straightened out Rick? Azadi gave you what you need. You need to explicitly call the component using a path from the web root (dot notation). From Azadi's email

RE: cfc question...

2008-06-16 Thread Jason Durham
PM To: CF-Talk Subject: RE: cfc question... Yes, I did get it, finally, Jason. Thanks to you and everyone who has given advice! I've got a lot to think about and consider making the change from .cfm and includes to cfc's, but I'm off to a good start, I think. The first step for me is to get

Re: cfc question...

2008-06-16 Thread Gerald Guido
You have to provide an _absolute_ path to a component via cfinvoke and createObject() using dot notation. You can get around that by doing something like this cfset YourPathToCFCDir = com.cf.model. cfinvoke component=#YourPathToCFCDir#YourCFC method=init returnvariable=retinit

RE: cfc question...

2008-06-16 Thread Rick Faircloth
?)...so how does it fit into the cfc functionality? Rick -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 1:29 AM To: CF-Talk Subject: Re: cfc question... Ok syntax error forgot the closing quotes. Make that: cfset agentLibrary

Re: cfc question...

2008-06-15 Thread Brian Kotek
On Sun, Jun 15, 2008 at 3:43 PM, Rick Faircloth [EMAIL PROTECTED] wrote: Let's say I have link on a page back to itself: a href='page.cfm?agent_id=20'Get Agent/a Then I have this in my page.cfm to invoke a cfc called 'agent.cfc': cfinvoke component='agent'

RE: cfc question...

2008-06-15 Thread Rick Faircloth
To: CF-Talk Subject: Re: cfc question... You should var-scope your query variable. Also, you can't just return 0 if the query has no data, since you have specified the return type as query and 0 is not a query. Finally, the function doesn't need to be access=remote unless you plan to call

Re: cfc question...

2008-06-15 Thread Azadi Saryev
invoke your agents.cfc as c21-ar.components.agents cf expects a path from web root if the component is not in same folder. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Rick Faircloth wrote: Thanks for the reply, Brian. I see what you mean about the agnosticism of the view. Thanks,

Re: cfc question...

2008-06-15 Thread Will Tomlinson
Another issue I've run into is how to help my calling page find my cfc's. While learning, I've just placed the cfc in the same folder as the calling page. But now I'm placing them in a components folder and the calling page can't find it. Rick, I mostly initialize them in application scope in

RE: cfc question...

2008-06-15 Thread Rick Faircloth
PROTECTED] Sent: Sunday, June 15, 2008 11:00 PM To: CF-Talk Subject: Re: cfc question... Another issue I've run into is how to help my calling page find my cfc's. While learning, I've just placed the cfc in the same folder as the calling page. But now I'm placing them in a components folder

Re: cfc question...

2008-06-15 Thread Azadi Saryev
there's nothing lame about it. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Rick Faircloth wrote: Now, Will... all that's a bit complicated for a newbie to cfc's! Didja haf'ta make it so hard! I just wanted a path! :o) Anyway, what's lame about putting all the cfc's together in a

Re: cfc question...

2008-06-15 Thread Gerald Guido
together in a directory where I can find them easily? -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2008 11:00 PM To: CF-Talk Subject: Re: cfc question... Another issue I've run into is how to help my calling page find my cfc's. While

RE: cfc question...

2008-06-15 Thread Rick Faircloth
I'll check out the info... thanks, Guido! -Original Message- From: Gerald Guido [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 12:02 AM To: CF-Talk Subject: Re: cfc question... Anyway, what's lame about putting all the cfc's together in a directory where I can find them

Re: cfc question...

2008-06-15 Thread Mike Kear
Rick, I'm delighted to see you starting to work with the power of CFCs. I also had the same confusion as you did at first. The terminology for some of these OO concepts gets a bit confusing, so perhaps i can help you by expressing some of the ideas related without using the teminology. Perhaps

RE: cfc question...

2008-06-15 Thread Rick Faircloth
? Thanks, Rick -Original Message- From: Gerald Guido [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 12:02 AM To: CF-Talk Subject: Re: cfc question... Anyway, what's lame about putting all the cfc's together in a directory where I can find them easily? There is nothing lame

Re: cfc question...

2008-06-15 Thread Azadi Saryev
you can always use: cfinvoke component=dot.delimited.path.to.cfc.from.webroot method=your_cfc_method_name_here ... same dor notation goes for createobject() function and cfobject tag did my first comment not come through on the list yet? i do have it in my email inbox... Azadi Saryev

RE: cfc question...

2008-06-15 Thread Rick Faircloth
to set up a path using the source attribute, etc. ??? Rick -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 12:50 AM To: CF-Talk Subject: Re: cfc question... Rick, I'm delighted to see you starting to work with the power of CFCs. I also

Re: cfc question

2007-07-20 Thread Tom Chiverton
On Wednesday 18 Jul 2007, [EMAIL PROTECTED] wrote: As far as security im not sure how using the array is any better. . I suppose once things are broken out using the array I could then validate the data coming in with cfqueryparam. This would keep people from tacking on sub­queries and

Re: cfc question

2007-07-18 Thread Dan Vega
Chad, Here is what I do in that situation. First my select statement by default will return all rows SELECT * FROM FlexoDirectConfigFiles WHERE 1=1 1 will always be eqal to 1 so this is an easy way of getting all records and allowing for optional and clauses then you can do this; Pass in

Re: cfc question

2007-07-18 Thread Tom Chiverton
On Wednesday 18 Jul 2007, [EMAIL PROTECTED] wrote: I have a CRUD CFC that has this function and I load the CFC into the application scope: cffunction name=readZJF access=public returntype=query cfargument name=criteria type=string required=yes cfset var readZJF=''/ cfquery

Re: cfc question

2007-07-18 Thread Kris Jones
Try preservesinglequotes()? What I get back is an error: [Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near 'PLATES.zjf'. Then I look at the SQL that was run in debugging. SELECT * FROM FlexoDirectConfigFiles WHERE FileName = ''PLATES.zjf'' AND FileModificationDate =

Re: cfc question

2007-07-18 Thread Charlie Griefer
#preserveSingleQuotes(arguments.criteria)# On 7/18/07, Chad Gray [EMAIL PROTECTED] wrote: I have a CRUD CFC that has this function and I load the CFC into the application scope: cffunction name=readZJF access=public returntype=query cfargument name=criteria type=string required=yes

RE: cfc question

2007-07-18 Thread Jim Rising
Have you tried: PreserveSingleQuotes() ? Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 10:04 AM To: CF-Talk Subject: cfc question I have a CRUD CFC that has this function

Re: cfc question

2007-07-18 Thread Matt Quackenbush
Chad, cfquery is indeed escaping your single quotes. You can get around this in a couple of ways. The first is to use preserveSingleQuotes() in your function, like so: WHERE #preserveSingleQuotes(arguments.criteria)# While that is a very easy solution, you will be opening yourself up to all

RE: cfc question

2007-07-18 Thread Chad Gray
-queries and injecting their own SQL statements. Thanks for the help! Chad -Original Message- From: Matt Quackenbush [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 11:25 AM To: CF-Talk Subject: Re: cfc question Chad, cfquery is indeed escaping your single quotes. You can get

Re: CFC Question

2007-01-09 Thread Robertson-Ravo, Neil (RX)
Can you add mappings? This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the

Re: CFC Question

2007-01-09 Thread Bruce Sorge
Nope. Cannot add mappings. On 1/9/07, Robertson-Ravo, Neil (RX) [EMAIL PROTECTED] wrote: Can you add mappings? This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number

Re: CFC Question

2007-01-09 Thread Jon Clausen
Bruce, Create a mapping in the CF Admin on your local machine for / SynergyDale pointing to the /nascar/ directory. Then use SynergyDale.cfc as your cfc object reference. You can also do the reverse on the remote server if you wish. HTH, Jon On Jan 9, 2007, at 1:39 PM, Bruce Sorge wrote:

Re: CFC Question

2007-01-09 Thread Dan Vega
Straight from livedocs http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/buildi12.htm Specifying the CFC location When you instantiate or invoke a component, you can specify the component name only, or you can specify a *qualified* path. To specify a qualified path, separate the directory

Re: CFC Question

2007-01-09 Thread Bruce Sorge
I figured it out. Just droped the SynergyDale and use CFC.Queries. On 1/9/07, Jon Clausen [EMAIL PROTECTED] wrote: Bruce, Create a mapping in the CF Admin on your local machine for / SynergyDale pointing to the /nascar/ directory. Then use SynergyDale.cfc as your cfc object reference.

RE: CFC Question

2007-01-09 Thread Ryan, Terrence
My particular way around this is to set a CFC path variable in the application scope. So I call CFC's like this: cfset application.CFCpath = cfc / Or cfset application.CFCpath = synergydale.cfc / cfobject component=#application.cfcPath#.nascar name=nascarObj Yeah it's extra typing, but is a

Re: CFC question

2006-10-04 Thread Robertson-Ravo, Neil (RX)
:10 2006 Subject: Re: CFC question If this change is made just make sure and var myReturnVar first. On 10/3/06, Alan Rother [EMAIL PROTECTED] wrote: Seems like this is a way to do it. I would suggest, without tetsing it... that instead of doing this cfif getTestCount() lt 2 cfreturn TRUE

Re: CFC question

2006-10-04 Thread Mike H
If this change is made just make sure and var myReturnVar first. On 10/3/06, Alan Rother [EMAIL PROTECTED] wrote: ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information

Re: CFC question

2006-10-04 Thread Mike H
Thanks, All. I wanted to make sure I was on the right track... Seems like this is a way to do it. I would suggest, without tetsing it... that instead of doing this cfif getTestCount() lt 2 cfreturn TRUE / cfelse cfreturn FALSE / /cfif Do this... cfif getTestCount() lt 2 cfset

Re: CFC question

2006-10-03 Thread Alan Rother
Seems like this is a way to do it. I would suggest, without tetsing it... that instead of doing this cfif getTestCount() lt 2 cfreturn TRUE / cfelse cfreturn FALSE / /cfif Do this... cfif getTestCount() lt 2 cfset myReturnVar = TRUE / cfelse cfset myReturnVar = FALSE / /cfif

Re: CFC question

2006-10-03 Thread Aaron Rouse
Yes, you could do that. On 10/3/06, Michael Hughes [EMAIL PROTECTED] wrote: Couldn't I conceivably add a function that would query the database and return the role for the specific user id, assign that role as a variable, and rewrite the getTestCount() function so that if the test count is

Re: CFC question

2006-10-03 Thread Aaron Rouse
If this change is made just make sure and var myReturnVar first. On 10/3/06, Alan Rother [EMAIL PROTECTED] wrote: Seems like this is a way to do it. I would suggest, without tetsing it... that instead of doing this cfif getTestCount() lt 2 cfreturn TRUE / cfelse cfreturn FALSE /

RE: CFC question

2006-09-13 Thread Adrian Lynch
So you have the original value maybe? Ade -Original Message- From: Victor Moore [mailto:[EMAIL PROTECTED] Sent: 13 September 2006 15:54 To: CF-Talk Subject: CFC question Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular

Re: CFC question

2006-09-13 Thread Dave Carabetta
On 9/13/06, Victor Moore [EMAIL PROTECTED] wrote: Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? In

RE: CFC question

2006-09-13 Thread COLLIE David
I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? To make it persistant in the lifetime of the CFC See Ray

RE: CFC question

2006-09-13 Thread Andy Matthews
Most likely so that if someone changes the argument name you only have to change it once, instead of each time that it appears inside of the function. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737

Re: CFC question

2006-09-13 Thread Michael Dinowitz
Syntax like that is usually used within an init() method to set a passed variable to the CFCs global variable scope to be used by other methods. When a CFC is cached or called outside of a one shot invoke, this is a must to prevent having to pass the variable in again and again. For example,

RE: CFC question

2006-09-13 Thread Ryan, Terrence
Typically if you are doing manipulation of the value, you don't want to alter the input value, but rather a copy of it. Cfset var firstName = Trim(arguments.firstname) / Vs Cfset arguments.firstName = Trim(arguments.firstname) / If you're not manipulating it further, then it might be a bit

Re: CFC question

2006-09-13 Thread Jake Churchill
This just came up on something for me this morning and I read that by doing this, it allows your .init() function to access the variables. Ryan, Terrence wrote: Typically if you are doing manipulation of the value, you don't want to alter the input value, but rather a copy of it. Cfset var

Re: CFC question

2006-09-13 Thread Victor Moore
Good points and nice doc by Ray. I didn't know about the variables scope being available to the whole cfc. Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion

Re: CFC question

2006-09-13 Thread Cutter (CFRelated)
The variables scope, when used within a CFC, is a protected private scope (only accessible from within the CFC). Within the head of your object (after the cfcomponent tag, but prior to any functions) you may have a block like this: cfscript variables.instance = structnew();

Re: CFC question

2006-09-13 Thread Teddy Payne
Another reason to use the variables scope outside of a method like init() would be when you extend a CFC from another CFC. The variables defined in the variables scope will act like a psuedo constructor if you are not calling that CFC via a cfinvoke, cfobject ...etc. It provides a little

Re: cfc question

2004-09-10 Thread Tony Weeg
and im trying to do the qofq within the cfc, and the result is simply an digit that i set to a session var, just to get it out...for this test... tw On Fri, 10 Sep 2004 14:11:34 -0400, Tony Weeg [EMAIL PROTECTED] wrote: hi there. i have this code @ the top of my cfc where i initialize the

RE: cfc question

2004-09-10 Thread Jim Davis
Some ideas: The var keyword really has no meaning outside of a method. I'm surprised that it's actually not throwing an error on that - but it could be, indirectly, a cause. The variable name get may be legal in CF, but seems suspicious - I wonder if you're hitting so weird incompatibility with

RE: CFC question

2003-10-14 Thread Raymond Camden
When you pass an argument to a CFC method, it isn't available in the This scope, it's available in the Arguments scope: cffunction name=whichMap returnType=numeric cfargument name=theQuery type=query required=true cfreturn arguments.theQuery.recordCount /cffunction You can also leave the

RE: CFC question

2003-10-14 Thread John McCosker
Thought I was missing something, Thanks Raymond. -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: 14 October 2003 16:18 To: CF-Talk Subject: RE: CFC question When you pass an argument to a CFC method, it isn't available in the This scope, it's available

RE: CFC question

2003-10-14 Thread Raymond Camden
Just in case it's not clear, the same would also apply to a UDF written using cffunciton as well. Also, don't forget that when you pass a query (or a struct or another cfc) to a method, you pass it be reference, not by value. So if the method changes the query, you are changing your original

RE: CFC Question

2003-10-01 Thread Aunger, Mitch
With a CFC, you only 'return' once... you don't return within a loop... (in your case you are only getting the last item) what you want to do is build a structure of names and then outside the loop, return the structure. make sense? Mitch Shameless plug for my wife's business:

RE: CFC Question

2003-10-01 Thread Ben Densmore
I don't follow completely. If I seta variable inside the loop to contain the structure then try to return that I get the same result. Ben -Original Message- From: Aunger, Mitch [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:36 PM To: CF-Talk Subject: RE: CFC

RE: CFC Question

2003-10-01 Thread Andy Ousterhout
That's because The return command sends you back to the calling program.Why not just return session.cart at the end of your script and deleted the imbedded loops. Andy -Original Message- From: Ben Densmore [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:19 PM To: CF-Talk

RE: CFC Question

2003-10-01 Thread Andy Ousterhout
Yes.But you also exited the program at the end of the first loop. -Original Message- From: Ben Densmore [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:42 PM To: CF-Talk Subject: RE: CFC Question I don't follow completely. If I seta variable inside the loop to contain

RE: CFC Question

2003-10-01 Thread Barney Boisvert
PROTECTED] Sent: Wednesday, October 01, 2003 1:42 PM To: CF-Talk Subject: RE: CFC Question I don't follow completely. If I seta variable inside the loop to contain the structure then try to return that I get the same result. Ben [Todays Threads] [This Message] [Subscription] [Fast

RE: CFC question

2003-07-14 Thread Mike Townend
Change the line so it reads CFSET goo = foo(arg) And it shoud then run the function HTH -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 15:34 To: CF-Talk Subject: CFC question Ok, I built a CFC replete with some methods. One

RE: CFC question

2003-07-14 Thread Raymond Camden
When you say, x = this.foo, it acts as an outside call. Just do cfset goo = foo(arg) === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia

RE: CFC question

2003-07-14 Thread Douglas.Knudsen
ah! danke! That did it. Doug -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 10:39 AM To: CF-Talk Subject: RE: CFC question Change the line so it reads CFSET goo = foo(arg) And it shoud then run the function HTH -Original Message

Re: CFC question

2003-07-14 Thread Kwang Suh
Yikes. What was the reasoning behind this? - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 14, 2003 8:40 AM Subject: RE: CFC question When you say, x = this.foo, it acts as an outside call. Just do cfset goo = foo(arg

RE: CFC question

2003-05-31 Thread webguy
Use the metadata - chapter 11 of the cfmx docs section 4 WG -Original Message- From: Michael Tangorre [mailto:[EMAIL PROTECTED] Sent: 30 May 2003 18:15 To: CF-Talk Subject: CFC question Is there a way to display all the functions within a cfc in one line or using one tag... I have 4 or

RE: CFC question

2003-05-31 Thread Andy Ousterhout
I've used cfdump var=#this.cfc# to list all of the methods. -Original Message- From: Michael Tangorre [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 12:15 PM To: CF-Talk Subject: CFC question Is there a way to display all the functions within a cfc in one line or using one tag...

Re: CFC question

2003-05-31 Thread Michael Tangorre
Nice! Thanks.. that is cool and exactly what I was looking for. Mike - Original Message - From: webguy [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, May 30, 2003 1:57 PM Subject: RE: CFC question Use the metadata - chapter 11 of the cfmx docs section 4 WG

RE: CFC Question

2003-01-31 Thread Andy Ousterhout
, January 31, 2003 12:39 AM To: CF-Talk Subject: Re: CFC Question On Thursday, Jan 30, 2003, at 21:58 US/Pacific, Andy Ousterhout wrote: OK, I am hooked after only a few hours on CFC's. This is so much easier to code that what I was trying to do with modules includes in 5.0 :) For the sake

RE: CFC Question - Found Answer

2003-01-31 Thread Andy Ousterhout
http://www.macromedia.com/desdev/mx/coldfusion/articles/supsub.html -Original Message- From: Andy Ousterhout [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 7:53 AM To: CF-Talk Subject: RE: CFC Question Ok, so in your example, Invoice has-a Ordering Person, how do I set

Re: CFC Question

2003-01-31 Thread Sean A Corfield
On Friday, Jan 31, 2003, at 05:52 US/Pacific, Andy Ousterhout wrote: Ok, so in your example, Invoice has-a Ordering Person, how do I set FirstName? Invoice.OrderingPerson.setFirst(Sean); ? Not quite - see below. !--- invoice.cfc --- cfcomponent cffunction

RE: CFC Question

2003-01-31 Thread Andy Ousterhout
for taking the time to educate me. Andy -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 11:08 AM To: CF-Talk Subject: Re: CFC Question On Friday, Jan 31, 2003, at 05:52 US/Pacific, Andy Ousterhout wrote: Ok, so in your example, Invoice

Re: CFC Question

2003-01-30 Thread Sean A Corfield
On Thursday, Jan 30, 2003, at 21:58 US/Pacific, Andy Ousterhout wrote: OK, I am hooked after only a few hours on CFC's. This is so much easier to code that what I was trying to do with modules includes in 5.0 :) For the sake of discussion, lets also say I have another component

RE: CFC Question

2003-01-01 Thread Raymond Camden
: morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 31, 2002 3:00 PM To: CF-Talk Subject: RE: CFC Question cfscript for(key in yourStruct) WriteOutput

  1   2   >