Re: setting a var from Inside cfoutput group

2009-02-27 Thread Jason Fisher
Or, if you don't need to loop the output for any other reason, just do this once, without using CFOUTPUT at all: ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http:/

Re: setting a var from Inside cfoutput group

2009-02-27 Thread Paul Ihrig
Thanks Guys! worked like a charm! On Fri, Feb 27, 2009 at 12:18 PM, morgan l wrote: > > You're restarting the variable by setting it inside the output group. Try: > > > > > > > > On Fri, Feb 27, 2009 at 11:10 AM, Paul Ihrig wrote: > > > > > > > > > > > > > > > > ~

Re: setting a var from Inside cfoutput group

2009-02-27 Thread morgan l
You're restarting the variable by setting it inside the output group. Try: On Fri, Feb 27, 2009 at 11:10 AM, Paul Ihrig wrote: > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic releas

Re: setting a var from Inside cfoutput group

2009-02-27 Thread Paul Ihrig
returns: myList: 6, myListX: 6,,6 #n1Id#, returns: 1,7,2,6, which is what i want, but as a carible i can call outside of the output. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date G

RE: setting a var from Inside cfoutput group

2009-02-27 Thread Adrian Lynch
Adrian > -Original Message- > From: Paul Ihrig [mailto:pih...@gmail.com] > Sent: 27 February 2009 16:58 > To: cf-talk > Subject: setting a var from Inside cfoutput group > > > #n1Id#, > > i need to set a variable as a list from the results above. > i

setting a var from Inside cfoutput group

2009-02-27 Thread Paul Ihrig
#n1Id#, i need to set a variable as a list from the results above. i tried putting a cfset inside the cfoutput, but it didn't work. some thing like ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release

RE: cfoutput group with totals

2007-11-09 Thread Andy Matthews
You could just alter your query slightly and let SQL do the counting for you. -Original Message- From: Toby King [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 2:22 PM To: CF-Talk Subject: cfoutput group with totals #authorName# #bookTitle# Hi there I understand

Re: cfoutput group with totals

2007-11-08 Thread Azadi Saryev
yes - put the code in the proper place - the outer cfoutput - like in Janet's example -- Azadi Saryev Sabai-dee.com http://www.sabai-dee.com ~| Get involved in the latest ColdFusion discussions, product development sharing, a

Re: cfoutput group with totals

2007-11-08 Thread Ian Skinner
#authorName# #bookTitle# You put the output you want between the two closing tags. Output there will appear once per group after the group details. Just as the tag is being output once per group. This is the same as the content put between the two opening tags that appears once pe

Re: cfoutput group with totals

2007-11-08 Thread Adam Parker
Hi Toby - Have you tried: #authorName# #bookTitle# #getAuthorsAndBooks.RecordCount# ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/p

Re: cfoutput group with totals

2007-11-08 Thread Janet MacKay
> IS there anyway of controlling this to > limit it to display just once. Yes. Move the totals _outside_ the inner tags. See my previous example. Otherwise, #total# will output multiple times. #authorName# #Books# #total# ~

Re: cfoutput group with totals

2007-11-08 Thread Toby King
Well I have basically got the same. The problem I'm having can be shown below: Harry Potter 1292BB85 $65 Cash 135CC94A $65 Cash Totals $130.00$130.00 Ben Forta 1292BB85 $65 Cash 135CC94A $65 Cash 135CC96B $65 Cash Totals $195.00$195.00$1

Re: cfoutput group with totals

2007-11-08 Thread Toby King
Well I had done this But the problem I have is that I am getting output like this IDTime Amount Erin 1292BB85-06-11-07 12:29 PM 65 135CC94A-06-11-07 04:14 PM 65 Totals$130.00 $130.00 Erin

Re: cfoutput group with totals

2007-11-08 Thread Janet MacKay
> Hoe do you include a count after the books and before the next author > name. Do you mean something like this? #authorName# #bookTitle# total books for this author (#bookCount#) ~~~

cfoutput group with totals

2007-11-08 Thread Toby King
#authorName# #bookTitle# Hi there I understand the piece of code well – so that’s cool – just want to try and enhance the code a fraction. I want to try and place after the list of books for each author a count of the number of books. I tried this but instead of getting the count

RE: cfoutput group

2006-12-09 Thread Pete
Problem has been fixed. Thanks -Original Message- From: Pete [mailto:[EMAIL PROTECTED] Sent: Saturday, 9 December 2006 8:29 PM To: CF-Talk Subject: cfoutput group Hi All I am outputting information OK but I would like to improve the way the information is presented to the user

cfoutput group

2006-12-09 Thread Pete
Hi All I am outputting information OK but I would like to improve the way the information is presented to the user. Hence I would like to group the output. Its sort of working but not the way I want it to and I cant seem to get the information exactly how I want it. Heres my code:

RE: SQL group by instead of cfoutput group?

2005-01-23 Thread Adrian Lynch
Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: 05 January 2005 01:46 To: CF-Talk Subject: Re: SQL group by instead of cfoutput group? >Just add 'DISTINCT' after 'SELECT' and SQL Server will automatically >ensure that you don't have any duplicate rows in you

Re: SQL group by instead of cfoutput group?

2005-01-05 Thread dave
lol! actually it woulda been nice as i was in kentucky and the ice storm knocked out power out for 3 days, so we huddled around the coal stove -- Original Message -- From: S. Isaac Dealey <[EMAIL PROTECTED]> Reply-To: cf-talk@houseoffusion.com Date: Wed, 5

Re: SQL group by instead of cfoutput group?

2005-01-05 Thread S . Isaac Dealey
> tiz amazing and i will leave it at that as im trying to be > good :) (i got coal in stockings this yr) So Santa says to a kid "you should be good, you don't want to get coal in your stocking" and the kid asks "what's coal?" and Santa says "well... it's kind of a rock that burns"... and the kid s

Re: SQL group by instead of cfoutput group?

2005-01-05 Thread dave
hehe i tried not to, i really did! but it just kept knawin at me haha i think most ppl just get wrong impression from me, i dont say things to well on here sometimes though (ok all the time) but its all good i even refrained from slappin up that big post from after ebay pulled all its .net stu

Re: SQL group by instead of cfoutput group?

2005-01-05 Thread Will Tomlinson
>there isnt some whifty nifty whizbang thing from .net 4 that? You are a trip dude!! I KNEW you were gonna post with somethin like this. I KNEW it!! Hell, I don't blame you though! Ya got me! I don't have time to learn .net for this project. For me, CF is kinda like sittin in front of a warm

Re: SQL group by instead of cfoutput group?

2005-01-05 Thread dave
there isnt some whifty nifty whizbang thing from .net 4 that? -- Original Message -- From: Will Tomlinson <[EMAIL PROTECTED]> Reply-To: cf-talk@houseoffusion.com Date: Tue, 04 Jan 2005 21:46:11 -0400 >>Just add 'DISTINCT' after 'SELECT' and SQL Server will

RE: SQL group by instead of cfoutput group?

2005-01-05 Thread Gaulin, Mark
What is the sql you have now? -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 8:46 PM To: CF-Talk Subject: Re: SQL group by instead of cfoutput group? >Just add 'DISTINCT' after 'SELECT' and SQL Server will automat

Re: SQL group by instead of cfoutput group?

2005-01-04 Thread Will Tomlinson
>Just add 'DISTINCT' after 'SELECT' and SQL Server will automatically >ensure that you don't have any duplicate rows in your result set. Oh, >and go check out CFQUERYPARAM and use it. It'll save you lots of >headaches. I tried DISTINCT and it still returns duplicate prodmodelcodes. How can I wee

Re: SQL group by instead of cfoutput group?

2005-01-04 Thread Barney Boisvert
Just add 'DISTINCT' after 'SELECT' and SQL Server will automatically ensure that you don't have any duplicate rows in your result set. Oh, and go check out CFQUERYPARAM and use it. It'll save you lots of headaches. cheers, barneyb On Tue, 04 Jan 2005 21:04:20 -0400, Will Tomlinson <[EMAIL PROT

SQL group by instead of cfoutput group?

2005-01-04 Thread Will Tomlinson
Hello, I'm working with a clothing database. ProdID is the PK, then I have prodmodelnumber, prodcategory, etc..etc.. Clothes with the same model number have different sizes and colors so there will be quite a few duplicate model numbers in this table. I'm passing the usual URL parameter for th

Re: odd.. cfoutput group and cfloop over query

2004-12-13 Thread Umer Farooq
uery. > > > > > > do something > > > > > Pascal > > >>-Original Message- >>From: Umer Farooq [mailto:[EMAIL PROTECTED] >>Sent: 10 December 2004 02:54 >>To: CF-Talk &

RE: odd.. cfoutput group and cfloop over query

2004-12-10 Thread Pascal Peters
2004 02:54 > To: CF-Talk > Subject: odd.. cfoutput group and cfloop over query > > Hi, > > I'm getting this odd.. problem.. when doing.. > > > > > SOMETHING > > > > > in the loo

odd.. cfoutput group and cfloop over query

2004-12-09 Thread Umer Farooq
Hi, I'm getting this odd.. problem.. when doing.. SOMETHING in the loop QUERYONE.XID will keep the first row value. if I remove the prefix from XID.. it gives me an error saying its not defined. Which is odd by itself. I

Re: cfoutput -- group and maxrows problem

2004-09-09 Thread C . S . A . Wilkens
Thanks for all the tips! I had thought about using my own counter, but thought it wouldn't work with pagination tools like cf_recordcount. Of course, they can be work together! It's up and running like a charm now. For what it's worth, here's how I integrated my homemade counter with the cf_record

RE: cfoutput -- group and maxrows problem

2004-09-07 Thread Cornillon, Matthieu (Consultant)
#publication_title#      #author_name#     But the maxrows attribute goes by the query record count, rather than the count of unique publication_titles. So instead of seeing 10 records per page, I may get 6 or 9 or 7--the system is counting each author row and thinks it's reached 10 before i

Re: cfoutput -- group and maxrows problem

2004-09-07 Thread Douglas Knudsen
p 2004 14:52:45 -0400 Subject: cfoutput -- group and maxrows problem To: CF-Talk <[EMAIL PROTECTED]> Hi everyone, I'm new to the list, but was driven to subscribe by a problem that's been driving me mad for days. I have three tables: publications, authors, and pub_author. I designed i

Re: cfoutput -- group and maxrows problem

2004-09-07 Thread S . Isaac Dealey
> ...which gives me multiple rows for publications with more > than one author.  So Pub 1-Auth1, Pub1-Auth2, Pub2-Auth3, > Pub3-Auth4 = 4 rows for 3 records. My output uses grouped > nested cfoutputs for display, essentially like this: > > maxrows="10"> >  #publication_title# >    >  #author

cfoutput -- group and maxrows problem

2004-09-07 Thread Christy Wilkens
Hi everyone, I'm new to the list, but was driven to subscribe by a problem that's been driving me mad for days. I have three tables: publications, authors, and pub_author. I designed it this way b/c pubs can have multiple authors, and I wanted a controlled list of authors. They're joined like so:

cfimport and cfoutput group - bug?

2003-07-23 Thread jon hall
When outputting a query with cfoutput group, and using a cfimported custom tag inbetween, cfoutput does not output all the records...only the grouped ones. I tested both cfmodule and a shorthand custom tag under MX UD3 default JRE and they also exhibit this behavior. A CF5 custom tag

Re: CFOUTPUT group by & recordcount HELP

2002-12-10 Thread Dina Hess
Tom, you're welcome. My pleasure to be of assistance. ~Dina - Original Message - From: Tom Forbes To: CF-Talk Sent: Tuesday, December 10, 2002 1:41 PM Subject: Re: CFOUTPUT group by & recordcount HELP Dear Dina Hess, Thank you very much for taking the time thi

Re: CFOUTPUT group by & recordcount HELP

2002-12-10 Thread Tom Forbes
> > > > > > #num_cat_recs# > > > > >#DomainName# > > > > - Original Message - > From: Tom Forbes > To: CF-Talk > Sent: Monday, December 09, 2002 9:28 PM > Subject: CFOUTPUT group by & recordcount HE

Re: CFOUTPUT group by & recordcount HELP

2002-12-10 Thread Dina Hess
DomainName# - Original Message - From: Tom Forbes To: CF-Talk Sent: Monday, December 09, 2002 9:28 PM Subject: CFOUTPUT group by & recordcount HELP I have checked my books and the CF achieve, but need a little help in the right direction, please. I have a

CFOUTPUT group by & recordcount HELP

2002-12-09 Thread Tom Forbes
I have checked my books and the CF achieve, but need a little help in the right direction, please. I have a db table that contains, among other things, Domain Names and about 20 Different Domain Name Categories. I want to Output the results of this db table by GROUPING the Domain Name Categorie

Next Page / Last Page" with CFoutput group="

2002-05-16 Thread Carlisle, Eric
I'm using cfoutput group="column" to show grouped output like this Group Item Item Item Group Item Item Item I'm trying to show 10 items per page. Using grou

Re: cfoutput group query

2001-12-12 Thread Joseph Thompson
Here is a tag that alows you to use "group output" AND MaxRows. This time I will get the credits right. Bud Schneehagen - Tropical Web Creations put this link up for us. http://www.twcreations.com/recordcount/ > Hi, > > I have question regarding cfouput group. If I use this code : > > > >

cfoutput group query

2001-12-12 Thread Fisichella
Hi, I have question regarding cfouput group. If I use this code : I got max 10 records to the screen... no problem for this... - - But If I use this code : bla bla bla... I got all

RE: cfoutput group count

2001-08-20 Thread Colin Fyfe
If you need to get the count within a group before you output, how about using ValueList or QuotedValueList on the column you need to group by and then using ListValueCount or ListValueCountNoCase as appropriate to find the number of instances within that group? For example: #qGetItems.Cate

RE: cfoutput group count

2001-08-18 Thread Dave Watts
> What if you need to display the count _above_ the enumerated items? > > > #xx.category# (#count# items) > > > > You have a couple of options. You could bring back the count in your SQL query, by using COUNT and GROUPing BY the field that you're ORDERing BY now. Or, you could u

Re: cfoutput group count

2001-08-18 Thread Don Vawter
o do it without making two passes through the query, one to get cts, second time to display but that is ugly. - Original Message - From: "Jim McAtee" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Saturday, August 18, 2001 6:17 PM Subject: Re: cfout

Re: cfoutput group count

2001-08-18 Thread Jim McAtee
What if you need to display the count _above_ the enumerated items? #xx.category# (#count# items) -Original Message- From: Don Vawter <[EMAIL PROTECTED]> To: CF-Talk <[EMAIL PROTECTED]> Date: Saturday, August 18, 2001 2:41 PM Subject: Re: cfoutput group c

Re: cfoutput group count

2001-08-18 Thread Don Vawter
gt; To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Saturday, August 18, 2001 1:43 PM Subject: cfoutput group count > I know this is easy, but I need sleep. How can I easily get the number of > records returned per grouping in a cfoutput query? > > Eric J Hoffman >

Re: cfoutput group count

2001-08-18 Thread Joseph Thompson
You could add a COUNT() to your query... Once you add a "Scalar/Aggregate" function to your SQL you will need to specify al the fields in the GROUP BY though. SELECT table1.field1, table2.field1, COUNT(table2.field1) AS CountField1 FROM table1 INNER JOIN table2 ON table1.ID=table2.Foreign

cfoutput group count

2001-08-18 Thread Eric J Hoffman
I know this is easy, but I need sleep. How can I easily get the number of records returned per grouping in a cfoutput query? Eric J Hoffman Small Dog Design, LLC www.smalldogdesign.com ~~ Structure your ColdFusion code with Fusebox. Get the offi

RE: CFOUTPUT & GROUP

2001-05-07 Thread Paul Smith
Paul Smith [mailto:[EMAIL PROTECTED]] >Sent: May 7, 2001 17:01 >To: CF-Talk >Subject: CFOUTPUT & GROUP > > >Hello! > >Is there a good tutorial somewhere on the Subject? > >I need to group more than one level down and the subject of grouping always >hurts my head ;-)

RE: CFOUTPUT & GROUP

2001-05-07 Thread Raymond B.
. Stuff every time new value in field3. -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED]] Sent: May 7, 2001 17:01 To: CF-Talk Subject: CFOUTPUT & GROUP Hello! Is there a good tutorial somewhere on the Subject? I need to group more than one level down

CFOUTPUT & GROUP

2001-05-07 Thread Paul Smith
Hello! Is there a good tutorial somewhere on the Subject? I need to group more than one level down and the subject of grouping always hurts my head ;-) Project Category 1 Project Type 1 Project 1 Project 2 etc Project Type 2 Project 89

RE: CFOutput Group By

2000-08-07 Thread Albert, Gregory Mitchell (Greg)
ges to display once, showing the most recent message and subject. Hopefully this helps to clarify. Thanks in advance! Greg Albert > -Original Message- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] > Sent: Monday, August 07, 2000 11:34 AM > To: [EMAIL PROTECTED] > Cc

RE: CFOutput Group By

2000-08-07 Thread Dave Watts
> I am trying to group all messages together with the same subject > for a forum. > > When I do that, I have to use > (where "Subject" is the field name). > > Here's the problem. I need the messages to be sorted by current > date/time first and then by subject. Is there a way to use the > ORDER B

CFOutput Group By

2000-08-07 Thread Albert, Gregory Mitchell (Greg)
I am trying to group all messages together with the same subject for a forum. When I do that, I have to use (where "Subject" is the field name). Here's the problem. I need the messages to be sorted by current date/time first and then by subject. Is there a way to use the ORDER BY clause in SQL