Easy CFC question (I hope)

2013-05-09 Thread Bruce Sorge
Hey, I am doing a project for my CF class in college. I admit that I have not played with CFC's in a while, but I cannot figure out why this is not working: cffunction name=adduser hint=Adds a new user to the database returntype=query cfargument name=fname required=true

Re: Easy CFC question (I hope)

2013-05-09 Thread morgan lindley
Change your return to: cfretun qUserEmail As you have it, it's attempting to return a reference to the adduser method. ~| Order the Adobe Coldfusion Anthology now!

Re: Easy CFC question (I hope)

2013-05-09 Thread Dave Watts
cffunction name=adduser hint=Adds a new user to the database returntype=query ... cfquery name=qUserEmail SELECT fname, lname, email, secureHash FROM users WHERE userid = #newID#

Re: Easy CFC question (I hope)

2013-05-09 Thread Bruce Sorge
Damn it. Stupid rookie mistake. Sent from my iPhone 4S. On May 9, 2013, at 11:55 AM, morgan lindley greyk...@gmail.com wrote: Change your return to: cfretun qUserEmail As you have it, it's attempting to return a reference to the adduser method.

RE: Easy CFC question (I hope)

2013-05-09 Thread DURETTE, STEVEN J
Subject: Re: Easy CFC question (I hope) snip You specified that the component returns a query object in the first line. But you're trying to return an instance of the component. You need to change one or the other. In this case, you probably want to change your CFRETURN to return the query object

Re: Easy CFC question (I hope)

2013-05-09 Thread Bruce Sorge
I just did what dave and morgan suggested and it worked like a charm. Embarrassed that I made this beginner mistake. I have about six or so more functions above this one that all work fine, just didn't pay attention to details on this one. Bruce On May 9, 2013, at 12:02 PM, DURETTE, STEVEN J

Re: Easy CFC question (I hope)

2013-05-09 Thread Dave Watts
Actually up higher he does a cfset var adduser = / so he is actually returning a variable. He can solve it either using your way or by doing a cfset adduser = qUserEmail / before the cfreturn. I didn't see that. I would recommend against creating a variable with the same name as the

RE: Easy CFC question (I hope)

2013-05-09 Thread DURETTE, STEVEN J
Subject: Re: Easy CFC question (I hope) I just did what dave and morgan suggested and it worked like a charm. Embarrassed that I made this beginner mistake. I have about six or so more functions above this one that all work fine, just didn't pay attention to details on this one. Bruce

RE: Easy CFC question (I hope)

2013-05-09 Thread Ian Chapman
Chnage to cfreturn qUserEmail -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: 09 May 2013 16:57 To: cf-talk Subject: Re: Easy CFC question (I hope) cffunction name=adduser hint=Adds a new user to the database returntype=query ... cfquery name

Re: Easy CFC question (I hope)

2013-05-09 Thread Bruce Sorge
just my .01 (I'm too cheap to give 2 cents!) LOL. -Original Message- From: Bruce Sorge [mailto:sor...@gmail.com] Sent: Thursday, May 09, 2013 12:06 PM To: cf-talk Subject: Re: Easy CFC question (I hope) I just did what dave and morgan suggested and it worked like a charm

Re: Easy CFC question (I hope)

2013-05-09 Thread Mike K
cents!) LOL. -Original Message- From: Bruce Sorge [mailto:sor...@gmail.com] Sent: Thursday, May 09, 2013 12:06 PM To: cf-talk Subject: Re: Easy CFC question (I hope) I just did what dave and morgan suggested and it worked like a charm. Embarrassed that I made this beginner

Re: Easy CFC question (I hope)

2013-05-09 Thread Eric Roberts
adduser is set to ...unless i missed it, i do't see it being assigned the return value of the query. If you are supposed to be returning the new ID then you would want cfreturn qUserEmail Eric On Thu, May 9, 2013 at 10:49 AM, Bruce Sorge sor...@gmail.com wrote: Hey, I am doing a project

jQuery calling cfc question

2010-07-29 Thread Richard Strong
I'm really drawing a blank here. I'm sure i have done this before but for some reason it doesn't work. Simple form, one field with id=name and a Save button which should update the name in the db. The cfc exists, the method is set to remote, but nothing happens, in firebug I see the call and

Re: jQuery calling cfc question

2010-07-29 Thread Scott Stewart
Richard, I blogged about this process a while back http://www.sstwebworks.com/entry.cfm?entry_id=F90D175E-EC22-10E6-52381ABD824654FA hope this helps On Thu, Jul 29, 2010 at 10:45 AM, Richard Strong richard.str...@gmail.com wrote: I'm really drawing a blank here. I'm sure i have done this

RE: jQuery calling cfc question

2010-07-29 Thread Andy Matthews
of the query variable to see what IT returns. andy -Original Message- From: Scott Stewart [mailto:webmas...@sstwebworks.com] Sent: Thursday, July 29, 2010 9:50 AM To: cf-talk Subject: Re: jQuery calling cfc question Richard, I blogged about this process a while back http://www.sstwebworks.com

Re: jQuery calling cfc question

2010-07-29 Thread Raj Vijay
Can you try changing the get to post?. In firebug where you able to see the parameter with the correct value for name?. Can you use console.log(username) and see the value?. Also i think it's better to change the id from name to some thing else. You can also try catch on the backend to see what

jQuery calling cfc question Resolved

2010-07-29 Thread Richard Strong
It was the onCFCRequest in Application.cfc After I commented out its working. Thanks Richard ~| Order the Adobe Coldfusion Anthology now!

Re: Bind / CFC Question

2010-04-13 Thread Charlie Griefer
I haven't done much with binding, but can possibly offer some advice... Presumably, you have an existing method that returns a query with all of the columns from the table. You can go one of two routes that I can think of... 1) create a new method that only queries the table for the single

Bind / CFC Question

2010-04-12 Thread Chad Baloga
I am fairly new to CFCs and binding and have only used query returns with 1 column. I was wondering how to bind to a cfinput with a certain column when my query is selecting * from a table. Thanks ~| Want to reach the

CFC Question

2009-09-24 Thread Phillip Vector
So for the meantime, I've put my cfc directory in the web root on the development server I use. I have the following code to call the cfc 1 cfinvoke component=cfc.filename method=Read returnvariable=User 2 cfinvokeargument name=UserID value=13204721-3474-8967-4897498740174013 3 /cfinvoke 4 I

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
- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, September 24, 2009 1:31 PM To: cf-talk Subject: CFC Question So for the meantime, I've put my cfc directory in the web root on the development server I use. I have the following code to call the cfc 1 cfinvoke component

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

cfc question...

2008-06-15 Thread Rick Faircloth
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' method='get_agent_info' returnvariable='agent_info' agent_id='#url.agent_id#'

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

cfc question

2007-07-18 Thread Chad Gray
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 cfquery datasource=dsn name=readZJF SELECT * FROM

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

Newbie CFC Question (Application.cfc)

2007-01-28 Thread RobG
I'm just now getting into CFCs (a bit late, but better than never)... I just wrote my first one, a UPS Shipping/Cancellation one to add to Ray Camden's UPS CFC package. Anyway, now that I've done that, I want to migrate my Application.cfm to an Application.cfc. I've read up on everything I

Re: Newbie CFC Question (Application.cfc)

2007-01-28 Thread James Holmes
OnRequestStart() On 1/29/07, RobG [EMAIL PROTECTED] wrote: In the App.cfc, I tried putting that and the other statements in below the CFCOMPONENT tag and it's not working. I moved them into the onApplicationStart function and that didn't do it either. Where the heck do you put this code so

Re: Newbie CFC Question (Application.cfc)

2007-01-28 Thread Max Hamby
Rob, go to http://ray.camdenfamily.com/presentations.cfm and watch Ray's presentation on Application.cfc. That should clear up and confusion you might have. ~Max Hamby On 1/28/07, RobG [EMAIL PROTECTED] wrote: I'm just now getting into CFCs (a bit late, but better than never)... I just wrote

CFC Question

2007-01-09 Thread Bruce Sorge
I have a site on my laptop under Nascar. The CFC directory is Nascar.cfc. On the live server though the root directory is SynergyDale. So of course my CFC's cannot be found. Do I need to change the directory name on my laptop to SynergyDale or is there a way for me to keep my directory the same

Re: CFC Question

2007-01-09 Thread Robertson-Ravo, Neil (RX)
2007 Subject: CFC Question I have a site on my laptop under Nascar. The CFC directory is Nascar.cfc. On the live server though the root directory is SynergyDale. So of course my CFC's cannot be found. Do I need to change the directory name on my laptop to SynergyDale or is there a way for me to keep

Re: CFC Question

2007-01-09 Thread Bruce Sorge
at http://www.reedexpo.com -Original Message- From: Bruce Sorge To: CF-Talk Sent: Tue Jan 09 18:39:16 2007 Subject: CFC Question I have a site on my laptop under Nascar. The CFC directory is Nascar.cfc. On the live server though the root directory is SynergyDale. So of course my CFC's

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
:39 PM To: CF-Talk Subject: CFC Question I have a site on my laptop under Nascar. The CFC directory is Nascar.cfc. On the live server though the root directory is SynergyDale. So of course my CFC's cannot be found. Do I need to change the directory name on my laptop to SynergyDale or is there a way

Another CFC question

2006-12-08 Thread Bruce Sorge
I have another question about CFC's I know that when I create one, and then I create the calling CFM page and they reside in the same directory they work fine, but if I create a folder called CFC and place them in there, it does not work. Is this something that I am supposed to do? Do I need to

Disregard the CFC question

2006-12-08 Thread Bruce Sorge
Nevermind. I just realized that Dreamweaver MX has all of my CFC's. When I dragged the one I wanted from the CFC list, it added the path for me. Simply use CFC.CFCName. Bruce ~| Create robust enterprise, web RIAs. Upgrade

Simple CFC question...

2006-11-01 Thread J W
I will probably do the Homer Doh!! After I hear the answer.. Here is a very simple CFC called mycfc.cfc cfcomponent cffunction name=sayhi returntype=string cfset hi = hi cfreturn hi /cffunction /cfcomponent Calling it using cfobject like this: cfobject name=testCFC

RE: Simple CFC question...

2006-11-01 Thread Gaulin, Mark
It's returnVariable, not return -Original Message- From: J W [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 10:00 AM To: CF-Talk Subject: Simple CFC question... I will probably do the Homer Doh!! After I hear the answer.. Here is a very simple CFC called mycfc.cfc

Re: Simple CFC question...

2006-11-01 Thread J W
See DOH!! Thanks! On 11/1/06, Gaulin, Mark [EMAIL PROTECTED] wrote: It's returnVariable, not return -Original Message- From: J W [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 10:00 AM To: CF-Talk Subject: Simple CFC question... I will probably do the Homer

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

CFC question

2006-10-03 Thread Michael Hughes
Hey folks - I'm brand new to Cold Fusion and inherited an application from an advanced developer. I'm trying to change a function in a cfc to allow an online test to be taken multiple times based on the user's role and how many times they've already taken the test: cffunction name=getTestCount

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 /

CFC question

2006-09-13 Thread Victor Moore
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? Thanks Victor

  1   2   >