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 Eric On Thu, May 9, 2013 at 10:49 AM, Bruce Sorge wrote: > > Hey, > I am doing a project for my CF class in college. I ad

Re: Easy CFC question (I hope)

2013-05-09 Thread Mike K
s 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) > > > >

Re: Easy CFC question (I hope)

2013-05-09 Thread Bruce Sorge
; That's 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 dav

RE: Easy CFC question (I hope)

2013-05-09 Thread Ian Chapman
Chnage to -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) > returntype="query"> ... > > SELECT fname, ln

RE: Easy CFC question (I hope)

2013-05-09 Thread DURETTE, STEVEN J
You might want to remove the since it isn't used then. Clean code is easier to troubleshoot. That's 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 Subjec

Re: Easy CFC question (I hope)

2013-05-09 Thread Dave Watts
> Actually up higher he does a so he is actually > returning a variable. He can solve it either > using your way or by doing a before the > cfreturn. I didn't see that. I would recommend against creating a variable with the same name as the component, though. Dave Watts, CTO, Fig Leaf Softwa

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 DURETTE, STEVEN J
imple variable. I know a lot of people who declare some sort of return variable and set it at the end just before returning. Steve -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, May 09, 2013 11:57 AM To: cf-talk Subject: Re: Easy CFC question (I hope)

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 wrote: > > Change your return to: > > > 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 Dave Watts
> returntype="query"> > ... > > SELECT fname, lname, email, secureHash > FROM users > WHERE userid = #newID# > > > > > > The information enters into the db as expect

Re: Easy CFC question (I hope)

2013-05-09 Thread morgan lindley
Change your return to: As you have it, it's attempting to return a reference to the adduser method. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion

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:

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! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=hou

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 w

RE: jQuery calling cfc question

2010-07-29 Thread Andy Matthews
lts 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.sstwe

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 wrote: > > I'm really drawing a blank here. I'm sure i have done this before but for > some rea

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: 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 colu

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 ColdFus

RE: CFC Question

2009-09-24 Thread Andy Matthews
elped us save memory, 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'

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 wrote: > > G

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, Phoeni

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 get

Re: CFC Question

2009-09-24 Thread Alan Rother
Hey Philip, Is this literally all the code on the page? TestUsers.cfm 1 2 3 4 Nothing else? If so, then, it's working... You just don't have any code to display the result. Add this And remove those numbers from between the invoke tag, just to be safe. -- Alan Rother Adobe Certified

Re: CFC Question

2009-09-24 Thread Phillip Vector
uld 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
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
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 wrote: > > firebug will tell you if it is firing or not. > > and you do have or another output of USER var > after your cfinvoke block, right? > > Azadi

Re: CFC Question

2009-09-24 Thread Azadi Saryev
firebug will tell you if it is firing or not. and you do have 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 result. The > cfin

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 wrote: > > you do not actually have 2 and 3 as text inside your block, > do you? > > Azadi Saryev > Sabai-dee.com > http://www.sabai-dee.com/ > > >

Re: CFC Question

2009-09-24 Thread Azadi Saryev
you do not actually have 2 and 3 as text inside your 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 code

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 Phillip Vector
Yes and is at the top (and closing). filename.cfc in the cfc directory var Data=""; Select * From Users Where UserID=#UserID#

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? > > > > >Are you getting an error? > > >andy > >So for the meantime, I've put my cfc directory in the web root on the >developme

RE: CFC Question

2009-09-24 Thread Andy Matthews
-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 2 3 4 I see the 1, but nothing else (which tells me cfinvoke is not working right). The filename is "filename.cfc

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: http://www.houseoffusion.com/groups

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: http://www.houseoffusion.com/groups/cf-talk/message.cfm/mes

Re: CFC Question

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

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:32658

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 2 3 4 I see the 1, but nothing else (which tells me cfinvoke is not working right). The filename is "filename.cfc" and is in the cfc directory (which i

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: Or (In the second case you have to make sure that the name of

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 simpl

RE: cfc question...

2008-06-17 Thread Rick Faircloth
wanted to get a particular agent's info: if using a url, or if using a form variable to id the agent. Correct? Rick > -Original Message- > From: Jason Durham [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2008 11:09 AM > To: CF-Talk > Subject: RE: cfc question..

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 understan

RE: cfc question...

2008-06-16 Thread Rick Faircloth
solete practice in the 'cfc era'??? Also, in your code below, I don't see the variable 'agentLibrary' being used after creation (instantiation?)...so how does it fit into the cfc functionality? Rick > -Original Message- > From: Mike Kear [mailto:[EMAIL PROTE

Re: cfc question...

2008-06-16 Thread Gerald Guido
>>You have to provide an _absolute_ path to a component via and createObject() using dot notation. You can get around that by doing something like this CreateObject("component", "#YourPathToCFCDir#YourOtherCFC") HTH G$ -- "If everything seems under control, you're not going f

RE: cfc question...

2008-06-16 Thread Jason Durham
-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 t

RE: cfc question...

2008-06-16 Thread Rick Faircloth
ke any sense? Rick > -Original Message- > From: Jason Durham [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 explici

Re: cfc question...

2008-06-16 Thread Carl Von Stetten
, but that > just returned an error any way I coded it. > > CF Admin Mappings? IIS Mappings? Virtual Directories? > I know this is probably something simple, but I'm just not getting it. > > Hints, anyone? > > Thanks, > > Rick > > >

RE: cfc question...

2008-06-16 Thread Jason Durham
: Sunday, June 15, 2008 11: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 to the question of how to set up paths for the cfc's. Let's say I'v

RE: cfc question...

2008-06-16 Thread William Seiter
[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 to the question of how to set up paths for

RE: cfc question...

2008-06-16 Thread Rick Faircloth
mailto:[EMAIL PROTECTED] > Sent: Monday, June 16, 2008 1:04 AM > To: CF-Talk > Subject: Re: cfc question... > > you can always use: > > method="your_cfc_method_name_here" ...> > > same dor notation goes for createobject() function and cfobject

Re: cfc question...

2008-06-16 Thread Mike Kear
Ok syntax error forgot the closing quotes. Make that: 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 datasource name. That looks something like: I

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
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 e:\inetpub\webr

RE: cfc question...

2008-06-16 Thread Rick Faircloth
Monday, June 16, 2008 1:04 AM > To: CF-Talk > Subject: Re: cfc question... > > you can always use: > > method="your_cfc_method_name_here" ...> > > same dor notation goes for createobject() function and cfobject tag > > did my first comment not come t

RE: cfc question...

2008-06-15 Thread Rick Faircloth
how I try 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

Re: cfc question...

2008-06-15 Thread Azadi Saryev
you can always use: 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 Sabai-dee.com http://www.sabai-dee.com/ ~

RE: cfc question...

2008-06-15 Thread Rick Faircloth
imple, but I'm just not getting it. Hints, anyone? 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 putt

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
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&#x

Re: cfc question...

2008-06-15 Thread Gerald Guido
t; > Anyway, what's lame about putting all the cfc's 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 >

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

RE: cfc question...

2008-06-15 Thread Rick Faircloth
: 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 learning, I've just placed the cfc in the same &g

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 i

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. > >

RE: cfc question...

2008-06-15 Thread Rick Faircloth
[mailto:[EMAIL PROTECTED] > Sent: Sunday, June 15, 2008 9:19 PM > 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"

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: > > Get Agent > > Then I have this in my page.cfm to invoke a cfc > called 'agent.cfc': > > method='get_agent_info' > returnvariable='agent_info' >

cfc question...

2008-06-15 Thread Rick Faircloth
Let's say I have link on a page back to itself: Get Agent Then I have this in my page.cfm to invoke a cfc called 'agent.cfc': My 'agent.cfc' looks like this: select * from our_agents where agent_id = '#arguments.agent_id#'

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 . > This would keep people from tacking on sub­queries and injecting th

RE: cfc question

2007-07-18 Thread Chad Gray
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, is indeed escaping your single quotes. You can get around this in a

Re: cfc question

2007-07-18 Thread Matt Quackenbush
Chad, 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 sorts o

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 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: > > > > > > SELECT * > FROM FlexoDirectConfigFiles > WHERE #arguments.

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 FileModificationDat

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: > > > > > SELECT * > FROM FlexoDirectConfigFiles > WHERE #arguments.criteria# > SELECT * FROM F

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 optional

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: SELECT * FROM FlexoDirectConfigFiles WHERE #arguments.criteria# I want to be able to pass in the "WHERE" statement into it

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 w

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 co

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 can

RE: CFC Question

2007-01-09 Thread Ryan, Terrence
nformation Technology   E-mail:     [EMAIL PROTECTED] -Original Message- From: Bruce Sorge [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 09, 2007 1: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 ser

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 r

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 nam

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 wrot

Re: CFC Question

2007-01-09 Thread Bruce Sorge
ommunication are not necessarily those expressed by Reed Exhibitions." > Visit our website 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 lapto

Re: CFC Question

2007-01-09 Thread Robertson-Ravo, Neil (RX)
9 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 cannot be found. Do I need to change the directory name on my laptop to SynergyDale or is there

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 nam

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 & inte

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 cr

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:

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

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 Calling it using cfobject like this: #answer# Outputs "hi" Like its supposed to... Now if I try the cfinvoke method I get an undefined variable.. #retur

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 > > > > > > > > >Do this... > > > > > > > > > > > >Are you getting an error or anything, or was this more of theorhetica

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 informat

Re: CFC question

2006-10-03 Thread Robertson-Ravo, Neil (RX)
Oct 04 05:33: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 > >

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 > > > > > > > > > Do this... > > > > > > > > > > > > Are

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 co

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 Do this... Are you getting an error or anything, or was this more of theorhetical question? On 10/3/06, Michael Hughes <[EMAIL PROTECTED]> wrote: > > Hey folks - I'm b

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:

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 flexibil

  1   2   >