emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Saving column views in agenda


From: Matthew Lundin
Subject: Re: [Orgmode] Saving column views in agenda
Date: Thu, 11 Dec 2008 18:25:58 -0600
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin)

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:





reply via email to

[Prev in Thread] Current Thread [Next in Thread]