Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > ColdFusion > Grouping output...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1615 of 1695
Post > Topic >>

Grouping output by date

by "Carol" <cschanz@[EMAIL PROTECTED] > Oct 16, 2006 at 09:24 AM

I'm a bit rusty on my coding and need some guidance.  I am trying to
create a calendar of events and I cannot get my groupings working
correctly and I'm hoping I can get some help on this issue.

I want my output to look like so:

MONDAY, NOVEMBER 13, 2006

Event 	                                            Department Name
Test 1                                              Mathematics
Date: 11-13-06
Time: 11:30 AM
Location: Student Center

TUESDAY, NOVEMBER 14, 2006

Event 	                                             Department Name
Test 2                                               Biology
Date: 11-14-06
Time: 10:30 AM
Location:  Library, 1st floor

Robotics Technology Conference          Computer Science
Date: 11-14-06
Time: 3:30 PM
Location: Computer Science Lab 5

and so on where events on the same day show up under that day (in this
example, Tuesday has 2 events).

My query is:

<CFQUERY NAME="GetEvents" DATASOURCE="#Application.DSN#">
	SELECT DepartmentName,
                      EventName,
                      CONVERT(datetime, EventStart, 101) AS DateStart,
                      CONVERT(datetime, EventStart, 108) AS TimeStart,
                      EventStart, EventEnd, EventLocation,
EventDescription, EventContact
	FROM	tblEvents
</CFQUERY>

and then for my output I have:

<CFOUTPUT QUERY="GetEvents" GROUP="DateStart">
             (output here)
</CFOUTPUT>

Right now, my two Tuesday header is repeating for each of the Tuesday
events.  I've tried several different solutions and haven't found one
that works correctly.  I am obviously missing something.  Can someone
help?  Thanks so much!
 




 4 Posts in Topic:
Grouping output by date
"Carol" <csc  2006-10-16 09:24:41 
Re: Grouping output by date
"Carol" <csc  2006-10-16 09:51:06 
Re: Grouping output by date
"Carol" <csc  2006-10-16 10:03:51 
Re: Grouping output by date
"Sam Curren" &l  2006-10-16 14:58:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:13:40 CDT 2008.