Home
The Toolkit for Online Communities
12954 Community Members, 1 member online
Log In Register

OpenACS BlogArchive

OpenACS Home : OpenACS Blog : Archive : 2005 : June : 10

Using group by feature of list builder

Something like this should do the trick

-groupby { values { "Day" { { groupby time_stamp } { orderby time_stamp,desc} } } }

The list is { groupby_name { { groupby column } { orderby column,order } } }

Add this to the query as any other filter with template::list::filter_where_clauses.

You can pass as many lists in to the values parameters of group by as columns you want to group on. If you add the listfilters tag to your ADP file, it will show the available grouping options as filters. Make sure you add groupby:optional in ad_page_contract.

Another trick is to hide the column when it is used to grouping. Just dynamically set the hide_p paramter for the list element that is in groupby.

12:05 PM, 10 Jun 2005 by Dave Bauer Permalink | Comments (0)

Replace annoying ^M characters in Emacs

To replace the annoying ^M characters you can search and replace. The following representation holds true:

^M = C-q C-m

Resulating in this sequence:

M-%
Query replace: C-q C-m with: C-q C-j

01:02 AM, 10 Jun 2005 by Malte Sussdorff Permalink | Comments (0)

XML

Archive

June 2005
S M T W T F S
      4 
6  7  8  10  11 
12  13  14  15  16  17  18 
19  20  21  22  23  24  25 
26  27  28  29  30     
April 2007
March 2007
October 2006
March 2006
February 2006
January 2006
December 2005
November 2005
August 2005
July 2005
June 2005
May 2005

Notifications

You may request notification for OpenACS Blog.

Syndication Feed

XML

Recent Comments

  1. Silvio Ernesto: hola
  2. Martin v. Löwis: Cannot run pg_ctl from launchd
  3. Joan Miller: Something Interesting
  4. Hubert Erlmoser: trustpharma.com
  5. Hubert Erlmoser: TRUSTPHARMA
  6. Ben Koot: Selva
  7. LARRY SCOVEL: TRUST PHARMA
  8. Nick Carroll: Theme Selva
  9. Ben Koot: More enhancements
  10. Jane Perez: Trustpharma.com