From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Saving column views in agenda Date: Thu, 11 Dec 2008 18:25:58 -0600 Message-ID: References: <06D0017E-5568-42C0-9AA2-4777F558D23E@uva.nl> <87k5aau0lh.fsf@fastmail.fm> <87ej0hypx4.fsf@fastmail.fm> <87vdtq67i0.fsf@gmail.com> <87y6ymirmv.fsf@fastmail.fm> <877i664jhe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAvr4-0003rv-1Q for emacs-orgmode@gnu.org; Thu, 11 Dec 2008 19:26:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAvr2-0003rj-Jd for emacs-orgmode@gnu.org; Thu, 11 Dec 2008 19:26:05 -0500 Received: from [199.232.76.173] (port=41876 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAvr2-0003rg-DH for emacs-orgmode@gnu.org; Thu, 11 Dec 2008 19:26:04 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:42284) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LAvr2-0001Km-1j for emacs-orgmode@gnu.org; Thu, 11 Dec 2008 19:26:04 -0500 In-Reply-To: <877i664jhe.fsf@gmail.com> (Eric Schulte's message of "Thu\, 11 Dec 2008 11\:09\:17 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org-mode Hi Eric, The addition of the :conds parameter to org-collector, the first example you provided (the one that zeroed out the amount for all items not "food") now results in 1 rather than 0 in the headings. (Example below.) Thanks for taking a look at this. Best, Matt * Example #+BEGIN: propview :id "december" :cols (ITEM amount spendtype (if (string= spendtype "food") amount 0)) | "ITEM" | "amount" | "spendtype" | "(if (string= spendtype \"food\") amount 0)" | |----------------------------------+----------+-------------+----------------------------------------------| | "Week One" | 1 | 1 | 1 | | "Grocery Store [2008-12-01 Mon]" | 56.77 | "food" | 56.77 | | "Athletic club [2008-12-02 Tue]" | 75.0 | "health" | 0 | | "Week Two " | 1 | 1 | 1 | | "Restaurant [2008-12-08 Mon]" | 30.67 | "food" | 30.67 | |----------------------------------+----------+-------------+----------------------------------------------| | | | | | #+END: ** December Spending :PROPERTIES: :ID: december :END: *** Week One **** Grocery Store [2008-12-01 Mon] :PROPERTIES: :amount: 56.77 :spendtype: food :END: **** Athletic club [2008-12-02 Tue] :PROPERTIES: :amount: 75.00 :spendtype: health :END: *** Week Two **** Restaurant [2008-12-08 Mon] :PROPERTIES: :amount: 30.67 :spendtype: food :END: