lto:br...@electricedgesystems.com]
> Sent: Saturday, 2 July 2011 4:19 AM
> To: cf-talk
> Subject: RE: Stupid Question
>
>
> can't anyone on this list take a joke ;-)
>
> Thanks for being perfect Andrew ;-)
>
> Cheers
>
On Thu, Jun 30, 2011 at 8:28 PM, Andrew Scott wrote:
> Yes but the code should be written
>
>
>
>
Shouldn't that be:
query*() functions take a query variable, not a string.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://wor
; Regards,
> Andrew Scott
> http://www.andyscott.id.au/
>
>
>
> > -Original Message-
> > From: Bryan Stevenson [mailto:br...@electricedgesystems.com]
> > Sent: Friday, 1 July 2011 7:48 AM
> > To: cf-talk
> > Subject: Re: Stupid Question
>
:.:.:.:.:.:.:.:.
> > Bobby Hartsfield
> > http://acoderslife.com
> > http://cf4em.com
> >
> >
> >
> > -Original Message-
> > From: Stephane Vantroyen [mailto:s...@emakina.com]
> > Sent: Thursday, June 30, 2011 2:56 PM
> > To: cf-tal
artsfield wrote:
>
> Yes, performance.
>
>
> .:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
> http://cf4em.com
>
>
>
> -Original Message-
> From: Stephane Vantroyen [mailto:s...@emakina.com]
> Sent: Thursday, June 30, 2011
> To: cf-talk
> Subject: Re: Stupid Question
>
>
> Well there is a slight nuance there.you can use CFET to set the value
of a
> column in a specific row of a querybut it's sort of cheating because
you do
> it using functionsyou can't set
to:rob...@austin-williams.com]
> Sent: Friday, 1 July 2011 5:57 AM
> To: cf-talk
> Subject: RE: Stupid Question
>
>
> > Out of curiosity, what condition was your cfparam trying to prevent?
>
> The URL structure works like this:
>
> http://blah-blad.com/ser
> Yes I was ;-)
Fortunately some of us have a good filter for screening that stuff out ;)
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
h
every needs a good tool :-)
On Thu, Jun 30, 2011 at 11:04 PM, Bryan Stevenson <
br...@electricedgesystems.com> wrote:
>
> Yes I was ;-)
>
> ...and don't forget to read my whole posthere's the piece you
> missed...
>
> > but it's sort of
>
> > > cheating because you do it using functions.
Yes I was ;-)
...and don't forget to read my whole posthere's the piece you
missed...
> but it's sort of
> > cheating because you do it using functionsyou can't set it directly
> > as was shown in this thread.
So I already stated I was being a toolI try and do that so others d
That is just being Pedantic Bryan :-)
clearly it was meant you cannot do
On Thu, Jun 30, 2011 at 10:48 PM, Bryan Stevenson <
br...@electricedgesystems.com> wrote:
>
> Well there is a slight nuance there.you can use CFET to set the
> value of a column in a specific row of a querybut i
> Well there is a slight nuance there.
Yep. I am aware of that option .. but could not see your code from here ;)
Mystery solved. (Thanks for taking the time to satisfy my curiosity :)
-Leigh
~|
Order the Adobe Coldfusio
Well there is a slight nuance there.you can use CFET to set the
value of a column in a specific row of a querybut it's sort of
cheating because you do it using functionsyou can't set it directly
as was shown in this thread.
There I set the value of a column in a query to blah bla
Also, if you have a variable (not a struct) named
capability_detail.capability_id
isDefined will return true, despite the fact that it's not a key in the
structure. StructKeyExists is better IMO.
On Thu, Jun 30, 2011 at 5:29 PM, Russ Michaels wrote:
>
> As I said earlier, IsDefined() will searc
that is probably the cause of your problem them, you cannot use cfset or
cfparam to set a value in a query.
On Thu, Jun 30, 2011 at 8:38 PM, Leigh wrote:
>
> > capability_detail is a query.
> > It returns one and only one record...
>
> Out of curiosity, what condition was your cfparam trying to
As I said earlier, IsDefined() will search every single scope for a var with
the name you you specify, StructKeyExists() will only look in the specified
struct.
On Thu, Jun 30, 2011 at 7:55 PM, Stephane Vantroyen wrote:
>
> Maybe a stupid question too, but why is it better to use structkeyexis
Yes, performance.
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Stephane Vantroyen [mailto:s...@emakina.com]
Sent: Thursday, June 30, 2011 2:56 PM
To: cf-talk
Subject: Re: Stupid Question
Maybe a stupid question too
> The cfparam tag was trying to set default values (like
> zero) for columns that may not always be returned from the
> query. That did not work, but the IsDefined did work.
So what code did you end up using to "set this default"? I ask because nothing
I am envisioning works under CF9. No error
//www.austin-williams.com/unplugged
-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com]
Sent: Thursday, June 30, 2011 3:38 PM
To: cf-talk
Subject: RE: Stupid Question
> capability_detail is a query.
> It returns one and only one record...
Out of curiosity, what condition was y
> capability_detail is a query.
> It returns one and only one record...
Out of curiosity, what condition was your cfparam trying to prevent?
1) query contained 0 records
2) query did _not_ contain the column "capability_id"
..
?
~~
To answer the question, capability_detail is a query. It returns one and only
one record... so I personally see no reason to avoid IsDefined in this case.
And thanks for the correction on my syntax error. That was helpful and the
code is working now. When I'm heavily focused on the logic I
Maybe a stupid question too, but why is it better to use structkeyexists() than
isdefined() ? Both will check if the given variable exists right? I don't get
it, is it bound to performance or so?
>I thought of that, but then wasn't sure how that would behave
>if capability_detail was a query.
> And you should avoid using isDefined().
>
>
> Regards,
> Andrew Scott
> http://www.andyscott.id.au/
>
>
> > -Original Message-
> > From: Dan Baughman [mailto:dan.baugh...@gmail.com]
> > Sent: Friday, 1 July 2011 4:05 AM
> > To: cf
> Actually without getting into a flame war
I wanted to find out what type of object "capability_detail" is first .. and
tackle the isDefined / structKeyExists debate later ;)
~|
Order the Adobe Coldfusion Anthology now!
http:
But if you include the scope in the call then you would be fine right?
I SCOPE EVERYTHING!!!
-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk]
Sent: Thursday, June 30, 2011 2:18 PM
To: cf-talk
Subject: Re: Stupid Question
and the reason being that IsDefined() will
Why avoid isDefined()?
-Original Message-
From: Andrew Scott [mailto:andr...@andyscott.id.au]
Sent: Thursday, June 30, 2011 2:12 PM
To: cf-talk
Subject: RE: Stupid Question
Actually without getting into a flame war with Dave and others, it should be
better to use
And you should
;
>
> And you should avoid using isDefined().
>
>
> Regards,
> Andrew Scott
> http://www.andyscott.id.au/
>
>
> > -Original Message-
> > From: Dan Baughman [mailto:dan.baugh...@gmail.com]
> > Sent: Friday, 1 July 2011 4:05 AM
> > To: cf-talk
y, 1 July 2011 4:05 AM
> To: cf-talk
> Subject: Re: Stupid Question
>
>
> You would ask it like this:
>
>
>
> On Thu, Jun 30, 2011 at 11:58 AM, Robert Harrison < robert@austin-
> williams.com> wrote:
>
> >
> > Just asking the question i
> > Just asking the question is bad... the line
> > IsDefined(capability_detail.capability_id)>
> >
> > Gives me the error
Because you forgot the quotes around the variable name. But as a few people
have asked what is the value of "capability_detail" _not_
capability_detail.capability_i
You would ask it like this:
On Thu, Jun 30, 2011 at 11:58 AM, Robert Harrison <
rob...@austin-williams.com> wrote:
>
> Just asking the question is bad... the line
>
>
>
> Gives me the error
>Element CAPABILITY_ID is undefined in CAPABILITY_DETAIL.
>
>
> Robert B. Harrison
> Dir
what is CAPABILITY_DETAIL at the point the error occurs
a struct, a query, etc ?
On Thu, Jun 30, 2011 at 6:58 PM, Robert Harrison wrote:
>
> Just asking the question is bad... the line
>
>
>
> Gives me the error
>Element CAPABILITY_ID is undefined in CAPABILITY_DETAIL.
>
>
> Ro
Just asking the question is bad... the line
Gives me the error
Element CAPABILITY_ID is undefined in CAPABILITY_DETAIL.
Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100
Hauppauge NY 11788
P : 631.231.6600 Ext. 119
F : 631
>>It is assigned to a function that returns a query.
Oh, I think you cannot assign a value to a column name in a query, neither with
CFSET, neither with CFPARAM. You must use querySetCell ()
~|
Order the Adobe Coldfusion Antho
> Sometime the query get that value and sometimes it doesn't...
Do you mean "column"? Query objects are not the same as structures. I do not
think you can just create a column that way. ie This fails
~|
Order the Adobe Co
It may depend on the code between the two lines
For instance, this works:
capability_detail.capability_id =
#capability_detail.capability_id#
But this causes the error:
capability_detail.capability_id =
#capability_detail.capability_id#
Your code may have redefined capability_detail to
williams.com/unplugged
-Original Message-
From: Dan Baughman [mailto:dan.baugh...@gmail.com]
Sent: Thursday, June 30, 2011 1:42 PM
To: cf-talk
Subject: Re: Stupid Question
I've seen stuff like this happen if capability_detail.capability_id had been
assigned to a function that didnt retur
well first you don't need the #'s in the cfset
second cfparam may be creating a variable instead of a struct, this happens
in certain situations with older versions of CF.
so try this
On Thu, Jun 30, 2011 at 6:37 PM, Robert Harrison wrote:
>
> If I have these two lines of code:
>
>
When the error occurs, is #capability_detail# defined?
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups
I've seen stuff like this happen if capability_detail.capability_id had been
assigned to a function that didnt return a value.
For some reason its defined but in some null state.
On Thu, Jun 30, 2011 at 11:37 AM, Robert Harrison <
rob...@austin-williams.com> wrote:
>
> If I have these two lines
occasionally a disconnect in Code View.
- Calvin
- Original Message -
From: "Mike Kear" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 16, 2003 5:53 PM
Subject: RE: stupid question (DWMX)
> That functionality is there i
I've known about that too. But it's no where near as easy or intuitive as
simply ctrl clicking where you are currently looking. At least to me.
-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 2:54 PM
To: CF-Talk
Subject: RE: stupi
osing tags.
Cheers,
Michael Kear
Windsor, NSW, Australia
AFP Webworks.
-Original Message-
From: Massimo, Tiziana e Federica [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 17 September 2003 6:56 AM
To: CF-Talk
Subject: Re: stupid question (DWMX)
> Speaking of stupid DWMX tricks. In stu
> Speaking of stupid DWMX tricks. In studio ctrl click (I think that's what
it
> was) selected an entire tag pair. I know in DW I have the little list at
the
> bottom but is there anything like ctrl click?
No, it's not there, please cast your vote:
http://www.macromedia.com/support/email/wishform
er 16, 2003 1:44 PM
> To: CF-Talk
> Subject: RE: stupid question (DWMX)
>
>
> Speaking of stupid DWMX tricks. In studio ctrl click (I think
> that's what it
> was) selected an entire tag pair. I know in DW I have the little
> list at the
> bottom but is there
er 16, 2003 1:11 PM
To: CF-Talk
Subject: RE: stupid question (DWMX)
kinda retarded and such basic functionality that we love in hs+ and
cfstudio.
tony weeg
sr. web applications architect
navtrak, inc.
[EMAIL PROTECTED]
www.navtrak.net
office 410.548.2337
fax 410.860.2337
-Original Me
, September 16, 2003 4:12 PM
To: CF-Talk
Subject: RE: stupid question (DWMX)
Doesn't do it in code view for me either. Have to open the wizard to get
that. Dunno why
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 12:52 PM
To: CF-Talk
Subjec
Doesn't do it in code view for me either. Have to open the wizard to get
that. Dunno why
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 12:52 PM
To: CF-Talk
Subject: RE: stupid question (DWMX)
not in code view?
tony weeg
sr
not in code view?
tony weeg
sr. web applications architect
navtrak, inc.
[EMAIL PROTECTED]
www.navtrak.net
office 410.548.2337
fax 410.860.2337
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:53 PM
To: CF-Talk
Subject: RE: stupid
> hey why hasn't macromedia made it so that when you drag
> an image from the left directory tree to the workspace
> it fills in the h/w of the image tag?
>
> just another shortcomingdoesnt make sense?
It works fine for me, in design view. I do that all the time.
Dave Watts, CTO, Fig Leaf S
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 5:26 PM
To: CF-Talk
Subject: RE: Stupid Question? - Commenting Code That Does Not Show in
Brow ser
I'd recommend against using this path...
I'm reminded of something someone once said to me: A stupid idea t
EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 2:52 PM
To: CF-Talk
Subject: Re: Stupid Question? - Commenting Code That Does Not Show in Browser
If you are using CF just put in three dashes instead of two...
At 12:34 PM 4/3/2001 -0600, you wrote:
>I want to place comments in the code
heh, I beat u to that already
-Original Message-
From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 2:11 PM
To: CF-Talk
Subject: RE: Stupid Question? - Commenting Code That Does Not Show in
Brow ser
whoever asked this question or is interested in a useful
I'd recommend against using this path...
I'm reminded of something someone once said to me: A stupid idea that
works isn't a stupid idea.
At 01:45 PM 04/03/2001 -0500, you wrote:
>this is what i would do.
>
>u will have to work a login page (u decide how to verify it). all this
>logi
(HTML comment, two dashes)
(ColdFusion comment, three dashes)
I have no idea if this is documented anywhere, but I imagine it must
be. I figured it out accidently.
At 12:34 PM 04/03/2001 -0600, you wrote:
>I want to place comments in the code for the other developers. However I do
>not
-Talk
Subject: RE: Stupid Question? - Commenting Code That Does Not Show in
Brow ser
this is what i would do.
u will have to work a login page (u decide how to verify it). all this
login page will do is set a session or application variable to true, or some
value. then in your actual code, i
-Talk
Subject: RE: Stupid Question? - Commenting Code That Does Not Show in
Browser
Cold Fusion comments (ones that have three hyphens, ) don't show
in the browser because the CF server does not send them through to the web
server. Regular HTML comments (ones that have only two hyphens, )
d
At 12:34 PM 4/3/01 -0600, [EMAIL PROTECTED] wrote:
>I want to place comments in the code for the other developers. However I do
>not want the comments to show up in the browser with "view source." Am I
>totally overlooking something?
Yep. use three hypens in your comments:
instead of two
ColdFusion has its own commenting notation that is removed before
the HTML is sent back to the user.
--
Larry W. Virden mailto:[EMAIL PROTECTED]>
http://www.purl.org/net/lvirden/>
Even if explicitly stated to the contrary, nothing in this
posting
should be construed as representing my employer
this is what i would do.
u will have to work a login page (u decide how to verify it). all this
login page will do is set a session or application variable to true, or some
value. then in your actual code, i would wrap a condition around your
comment, to only let the comment show (on the browse
are you using or use 3 dashes the other is to
comment
out HTML code that you WANT people to see in the source. 3 dashes HIDES it.
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 03, 2001 2:35 PM
> To: CF-Talk
> Subject: Stupid Question
If you are using CF just put in three dashes instead of two...
At 12:34 PM 4/3/2001 -0600, you wrote:
>I want to place comments in the code for the other developers. However I do
>not want the comments to show up in the browser with "view source." Am I
>totally overlooking something?
>
>Thank
Use ColdFusion comment Tags (). The CF Server processes
them so they don't show up like normal html comments ().
Christopher McGuckin
DynCorp I&ET, Inc.
(703) 264-9247
"Outside of a dog, a book is man's best friend. Inside of a dog it's too
dark to read".
-Groucho Marx
-Original Message--
Comments will only show in the 'View Source' when you prefix
the information with two hyphens.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 2:35 PM
To: CF-Talk
Subject: Stupid Question? - Commenting Code That Does Not Show in
<[EMAIL PROTECTED]> wrote:
I want to place comments in the code for the other developers. However I do
not want the comments to show up in the browser with "view source." Am I
totally overlooking something?
Thanks,
Jeff
~~
Structure your ColdFu
Cold Fusion comments (ones that have three hyphens, ) don't show
in the browser because the CF server does not send them through to the web
server. Regular HTML comments (ones that have only two hyphens, )
do get sent through.
HTH
Hatton
> -Original Message-
> From: [EMAIL PROTECTED] [m
k" <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 9:43 AM
Subject: Re: Stupid Question - Regular Expressions?
> > CF does support regular expressions.
> > Forta refers to them in a brief chapter in
> > the Advanced 4.0 book (the green one).
>
> The one I
> CF does support regular expressions.
> Forta refers to them in a brief chapter in
> the Advanced 4.0 book (the green one).
The one I left at home today... ;-)
> For instance, inside a cfscript block:
>
> thisContent =
> "#REReplaceNoCase(thisContent,"]*> ","","ALL")#";
> thisContent = "#RERe
yes, but in a relatively limited sense. Some functions that use regular
expressions.
rereplace()
rereplacenocase()
refind()
refindnocase()
An ugly example that will remove doubleclick adds from the content of a page
(along with everything between them, text, images, line breaks, whatever
h
CF does support regular expressions.
Forta refers to them in a brief chapter in
the Advanced 4.0 book (the green one).
For instance, inside a cfscript block:
thisContent =
"#REReplaceNoCase(thisContent,"]*> ","","ALL")#";
thisContent = "#REReplaceNoCase(thisContent,"]*>","|||","A
Try Val(Replace("$23.12", "$", "", "ALL"))
--Katrina
Katrina Chapman
Consultant
Ameriquest Mortgage
Reuben King
70 matches
Mail list logo