RE: Cool feature I didn't know about

2006-07-26 Thread Jenny Gavin-Wear
Nice Chris, thanks, saves a lot of time ! -Original Message- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: 25 July 2006 19:34 To: CF-Talk Subject: Cool feature I didn't know about Most of you probably know this, but I thought I would share because I will use this all the time. H

Re: Cool feature I didn't know about

2006-07-25 Thread Aaron Rouse
Yes, I know what you were showing and it makes perfect sense for that example. I was just trying to show other ways to avoid the function that might be the best option for different scenarios. On 7/25/06, Bryan Stevenson <[EMAIL PROTECTED]> wrote: > > > That way will work 99% of the time, there i

RE: Cool feature I didn't know about

2006-07-25 Thread Ben Nadel
thing on the CF side??? ... Ben Nadel www.bennadel.com -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 4:47 PM To: CF-Talk Subject: Re: Cool feature I didn't know about Sounds right as he is using Hungarian notation to notify a Quer

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
- From: Bryan Stevenson <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 22:03:02 2006 Subject: Re: Cool feature I didn't know about Hey Ben, I'm not entirely sure, but this: qData.value is not an array and thus I suspect that's why it errors Bryan Stevenson B.Co

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
ed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Ian Skinner <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 21:54:18 2006 Subject: RE: Cool feature I didn't know about This is a pound: £ You yanks and your abuse of the Queen

Re: Cool feature I didn't know about

2006-07-25 Thread Bryan Stevenson
Hey Ben, I'm not entirely sure, but this: qData.value is not an array and thus I suspect that's why it errors Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web:

RE: Cool feature I didn't know about

2006-07-25 Thread Ian Skinner
This is a pound: £ You yanks and your abuse of the Queens English :-) Now is that a pound as in a measure of weight (which is what we in the US mean by #. As in I would like to buy a 5# pot roast for dinner.) Or is it just the monetary pound you Brits supposedly don't use anymore, being part

RE: Cool feature I didn't know about

2006-07-25 Thread Ben Nadel
July 25, 2006 4:44 PM To: CF-Talk Subject: RE: Cool feature I didn't know about .. But this Throws errors: They appear to be the same thing, but throw error simply on syntax?? I do not know the underpinnings of ColdFusion to know for sure, but I would guess it depends on the functio

RE: Cool feature I didn't know about

2006-07-25 Thread Ian Skinner
Indeed, we had a discussion on this and I was for not using evaluate (others were) - though I am not 100% against it, I have never seen bad performance with it all in all. I believe back in the pre-Java/MX days there was more of a performance hit with evaluate when under heavy load. I've heard

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
our website at http://www.reedexpo.com -Original Message- From: Aaron Rouse <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 21:12:56 2006 Subject: Re: Cool feature I didn't know about I have not messed with GetMetaDAta much but I'd imagine GetMetaData(Instance[Arguments.

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
te at http://www.reedexpo.com -Original Message- From: Ian Skinner <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 21:38:51 2006 Subject: RE: Cool feature I didn't know about Ultimately the point is #Form["blah_#i#"]# replaces Evaluate() And #form["blah_&qu

RE: Cool feature I didn't know about

2006-07-25 Thread Ian Skinner
. But this Throws errors: They appear to be the same thing, but throw error simply on syntax?? I do not know the underpinnings of ColdFusion to know for sure, but I would guess it depends on the functions. These are functions after all, and functions except certain kinds of parameter

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Aaron Rouse <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 21:12:56 2006 Subject: Re: Cool feature I didn't know about I have not messed with GetMetaDAta much but I&

RE: Cool feature I didn't know about

2006-07-25 Thread Ian Skinner
Ultimately the point is #Form["blah_#i#"]# replaces Evaluate() And #form["blah_" & i]# cleans up the extra pound signs. :-) -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - "C code. C c

RE: Cool feature I didn't know about

2006-07-25 Thread Ben Nadel
ailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 4:18 PM To: CF-Talk Subject: Re: Cool feature I didn't know about Ben...you can go as far as referencing a column in a specific row of a query using the array notation Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electri

Re: Cool feature I didn't know about

2006-07-25 Thread Bryan Stevenson
> That way will work 99% of the time, there is almost always a way to avoid > using Evaluate() and SetVariable(). You can also do things like > #Form["blah_#i#"]# only point that out since the prior > example might imply you would have to first do something like "Blah_#I#" /> and then #Form[foo]#

Re: Cool feature I didn't know about

2006-07-25 Thread Bryan Stevenson
Well all I can say is I no longer use Evaluate() ...there may be some circumstances where it fails...but I haven't found it yet Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL

Re: Cool feature I didn't know about

2006-07-25 Thread Bryan Stevenson
Ben...you can go as far as referencing a column in a specific row of a query using the array notation Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electr

Re: Cool feature I didn't know about

2006-07-25 Thread Aaron Rouse
n it to the sender or > call > our switchboard on +44 (0) 20 89107910. The opinions expressed within > this > communication are not necessarily those expressed by Reed Exhibitions." > Visit our website at http://www.reedexpo.com > > -Original Message- > From: Aaron Ro

RE: Cool feature I didn't know about

2006-07-25 Thread Ian Skinner
One example I think I have is GetMetaData(evaluate('instance.' & arguments.methodName)) Or evaluate('attributesStruct.#attributeName#') I would guess, but have not tested, that something like these would maybe equivalent. GetMetaData(instance[arguments.methodName]) attributesStruct[attribute

Re: Cool feature I didn't know about

2006-07-25 Thread Charlie Griefer
quot; > Visit our website at http://www.reedexpo.com > > -Original Message- > From: Aaron Rouse <[EMAIL PROTECTED]> > To: CF-Talk > Sent: Tue Jul 25 20:50:39 2006 > Subject: Re: Cool feature I didn't know about > > Any examples of where you could not s

RE: Cool feature I didn't know about

2006-07-25 Thread Ian Skinner
This will not work all the time though will it? You will never get rid of evaluate altogether? Not altogether, but it is used much more often then necessary. The only occurrence I have not been able to eliminate it from is something like this.

RE: Cool feature I didn't know about

2006-07-25 Thread Munson, Jacob
You can also do #attributesStruct[attributeName]# in a lot of cases. > -Original Message- > From: Robertson-Ravo, Neil (RX) > Sent: Tuesday, July 25, 2006 1:43 PM > > Will have to dig in my code - I suppose the question to the > gurus etc is > can you 100% dispose of using evaluate? >

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
hboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Aaron Rouse <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 20:50:39

Re: Cool feature I didn't know about

2006-07-25 Thread Aaron Rouse
. The opinions expressed within > this > communication are not necessarily those expressed by Reed Exhibitions." > Visit our website at http://www.reedexpo.com > > -Original Message- > From: Bryan Stevenson <[EMAIL PROTECTED]> > To: CF-Talk > Sent: Tue Jul 25

Re: Cool feature I didn't know about

2006-07-25 Thread Aaron Rouse
Any examples of where you could not see a way around it? That is a neat trick with the ArraySum although I'd guess the number would be all out of whack if you are doing grouped(CF not SQL) output. On 7/25/06, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > > Examples? Sometimes I hate us

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
edexpo.com -Original Message- From: Bryan Stevenson <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 20:06:58 2006 Subject: Re: Cool feature I didn't know about > Examples? Sometimes I hate using evaluate but I sometimes cannot see a way > around it! Bryan Stevenson B.Comm.

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
e opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Josh Nathanson <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 20:09:22 2006 Subject: Re: Cool feature I

RE: Cool feature I didn't know about

2006-07-25 Thread Ben Nadel
Chris, That is a wicked cool feature and I just did some experimenting with it: http://bennadel.com/index.cfm?dax=blog:167.view Do you have any idea why the "[...]" notation is required? I get errors when I do QUERY.Column. I draw a comparison to ValueList() which can take QUERY.Column ,but NOT

Re: Cool feature I didn't know about

2006-07-25 Thread Josh Nathanson
eed to use GROUP BY on a column if you are using an aggregate function such as SUM. -- Josh - Original Message - From: "Robertson-Ravo, Neil (RX)" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Tuesday, July 25, 2006 11:36 AM Subject: Re: Cool feature I didn't

Re: Cool feature I didn't know about

2006-07-25 Thread Bryan Stevenson
> Examples? Sometimes I hate using evaluate but I sometimes cannot see a way > around it! Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesy

RE: Cool feature I didn't know about

2006-07-25 Thread Ben Nadel
Word up, I didn't know that. That is a hi-quality tip :) ... Ben Nadel www.bennadel.com -Original Message- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 2:34 PM To: CF-Talk Subject: Cool feature I didn't know about Most of you probably

RE: Cool feature I didn't know about

2006-07-25 Thread Russ
n-Ravo, Neil (RX) [mailto:Neil.Robertson- > [EMAIL PROTECTED] > Sent: Tuesday, July 25, 2006 2:37 PM > To: CF-Talk > Subject: Re: Cool feature I didn't know about > > Not true all the time, it can however have overhead in SQL, a SUM function > at the DB, on a

RE: Cool feature I didn't know about

2006-07-25 Thread Michael E. Carluen
> You probably do one of 2 things: 1) Increment a variable while > outputting your query, or b) perform a query of queries. > > Just do this: #arraySum(getData['rev'])# You can use any array Awesome tip, Chris- thanks for sharing. Already started replacing QofQs I had with SELECT sum(). De

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
Visit our website at http://www.reedexpo.com -Original Message- From: Josh Nathanson <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 19:53:23 2006 Subject: Re: Cool feature I didn't know about Also, it's nifty to do this in your SQL query and avoid the overhead in CF entir

Re: Cool feature I didn't know about

2006-07-25 Thread Robertson-Ravo, Neil (RX)
--Original Message- From: Bryan Stevenson <[EMAIL PROTECTED]> To: CF-Talk Sent: Tue Jul 25 19:45:33 2006 Subject: Re: Cool feature I didn't know about Good tip Chrisand using array notation you can avoid Evaluate() and ait makes assigning values to dynamically named variables much n

Re: Cool feature I didn't know about

2006-07-25 Thread Josh Nathanson
Also, it's nifty to do this in your SQL query and avoid the overhead in CF entirely, so long as your query is returning the desired rows. In MySQL it would be something like SELECT SUM(rev) AS revsum, MAX(rev) AS revmax, MIN(rev) AS revmin, othercolumns FROM table WHERE whereclause Then on

Re: Cool feature I didn't know about

2006-07-25 Thread Bryan Stevenson
Good tip Chrisand using array notation you can avoid Evaluate() and ait makes assigning values to dynamically named variables much nicer Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-