Re: CFIF inside a Form

2006-08-11 Thread Tom Chiverton
On Thursday 10 August 2006 22:13, Russ wrote: Other then it's probably nicer to write it like this: input type=hidden name=price value=#trim(iif(getDollDetails.price,getDollDetails.price,getDollDetails.s r p))# I don't think anything involving iif and/or trim is nicer than a perfectly good

Re: CFIF inside a Form

2006-08-11 Thread Mingo Hagen
Tom Chiverton wrote: I don't think anything involving iif and/or trim is nicer than a perfectly good if/else. I do :p ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion

RE: CFIF inside a Form

2006-08-11 Thread loathe
] Sent: Friday, August 11, 2006 9:14 AM To: CF-Talk Subject: Re: CFIF inside a Form On Thursday 10 August 2006 22:13, Russ wrote: Other then it's probably nicer to write it like this: input type=hidden name=price value=#trim(iif(getDollDetails.price,getDollDetails.price,getDollDetails

RE: CFIF inside a Form

2006-08-11 Thread Ken Ferguson
PROTECTED] Sent: Friday, August 11, 2006 9:14 AM To: CF-Talk Subject: Re: CFIF inside a Form On Thursday 10 August 2006 22:13, Russ wrote: Other then it's probably nicer to write it like this: input type=hidden name=price value=#trim(iif(getDollDetails.price,getDollDetails.price,getDollDetail s

Re: CFIF inside a Form

2006-08-11 Thread Mingo Hagen
Which is more readable is quite subjective, you probably find this more readable: select option value=#value#cfif value eq url.value selected/cfif#text#/option /select And I this: select option value=#value##iif( value eq url.value, de( ' selected' ), de( '' ))##text#/option /select

RE: CFIF inside a Form

2006-08-11 Thread loathe
:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 10:28 AM To: CF-Talk Subject: Re: CFIF inside a Form Which is more readable is quite subjective, you probably find this more readable: select option value=#value#cfif value eq url.value selected/cfif#text#/option /select And I

Re: CFIF inside a Form

2006-08-11 Thread Charlie Griefer
= /cfif option value=#value# #selected# #text# /option /select -Original Message- From: Mingo Hagen [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 10:28 AM To: CF-Talk Subject: Re: CFIF inside a Form Which is more readable is quite

RE: CFIF inside a Form

2006-08-11 Thread loathe
freakishly deviant An apt description if ever there was one for me :) -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 10:43 AM To: CF-Talk Subject: Re: CFIF inside a Form well God man, sure there's no 'right' or 'wrong' way

Re: CFIF inside a Form

2006-08-11 Thread Tom Chiverton
On Friday 11 August 2006 15:27, Mingo Hagen wrote: Which is more readable is quite subjective, you probably find this more readable: Indeed. select option value=#value#cfif value eq url.value selected/cfif#text#/option /select Well, I'd lay out nicer: select   option value=#value#

RE: CFIF inside a Form

2006-08-11 Thread Everett, Al \(NIH/NIGMS\) [C]
aolMe too./aol -Original Message- From: loathe Sent: Friday, August 11, 2006 10:39 AM To: CF-Talk Subject: RE: CFIF inside a Form I prefer: select cfif value eq url.value cfset selected = selected cfelse cfset selected = /cfif

Re: CFIF inside a Form

2006-08-11 Thread Mingo Hagen
Tom Chiverton wrote: Well, I'd lay out nicer: select option value=#value# cfif value eq url.value selected /cfif #text#/option /select How is whitespace managed if you lay it out like that, I'm a bit obsessive compulsive about that ;) :points at CFEclipse

RE: CFIF inside a Form

2006-08-11 Thread loathe
- From: Mingo Hagen [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 11:16 AM To: CF-Talk Subject: Re: CFIF inside a Form Tom Chiverton wrote: Well, I'd lay out nicer: ~| Introducing the Fusion Authority Quarterly

Re: CFIF inside a Form

2006-08-11 Thread Mingo Hagen
You have a point, so my best of both worlds solution is the #iif()# construction, white space in order, readable, and not so complex it can't be figured it out 5 years from now. Mingo. loathe wrote: I don't like implicit code. I want it to be very easy to understand. I know two years from

Re: CFIF inside a Form

2006-08-11 Thread Tom Chiverton
On Friday 11 August 2006 16:16, Mingo Hagen wrote: How is whitespace managed if you lay it out like that, It isn't. I'm a bit obsessive compulsive about that ;) I only worry about it if it becomes a problem (though I do wish CFCs would default to output=false) Yeah, yeah, I know, not an

RE: CFIF inside a Form

2006-08-10 Thread Everett, Al \(NIH/NIGMS\) [C]
Is it possible there's a null value in that column? That would result in an empty string for CF and gt would be an invalid operator. cfif val(getDollDetails.price) gt 0 might be better. -Original Message- From: Donna French [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 5:02

RE: CFIF inside a Form

2006-08-10 Thread Russ
Other then it's probably nicer to write it like this: input type=hidden name=price value=#trim(iif(getDollDetails.price,getDollDetails.price,getDollDetails.sr p))# I don't see anything wrong with it. Where does getDollDetails get created? You said it's a query? CF debugger sucks sometimes

Re: CFIF inside a Form

2006-08-10 Thread Donna French
Not likely it's null but I went ahead tried it using VAL still get the same error. Any other suggestions? This site is using CF5 if that helps - database is SQL 2000 Thanks, Donna Is it possible there's a null value in that column? That would result in an empty string for CF and gt would

Re: CFIF inside a Form

2006-08-10 Thread Donna French
It's not quite 'time' for me to go home - but it's TIME for me to go... You know one of the great things about CF is it tells you exactly which line to look atDUH wrong damn line thanks for the help - it's fixed now and I am going home!!! LOL ~ Donna Other then it's probably nicer

Re: CFIF inside a Form

2006-08-10 Thread Bryan Stevenson
Not likely it's null but I went ahead tried it using VAL still get the same error. Any other suggestions? This site is using CF5 if that helps - database is SQL 2000 Thanks, Donna Yep...1st thing you do when you get an error like that is CFDUMP all values involved and go from there.

Re: CFIF inside a Form

2006-08-10 Thread Bryan Stevenson
It's not quite 'time' for me to go home - but it's TIME for me to go... You know one of the great things about CF is it tells you exactly which line to look atDUH wrong damn line thanks for the help - it's fixed now and I am going home!!! LOL ~ Donna Ouch...don't ya just hate