emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-collector not working
@ 2017-01-02 18:07 Malte Deiseroth
  2017-01-11  1:36 ` Charles Millar
  0 siblings, 1 reply; 2+ messages in thread
From: Malte Deiseroth @ 2017-01-02 18:07 UTC (permalink / raw)
  To: emacs-orgmode

Hello

The org-collector seems to be broken. I followed the instructions on:
http://orgmode.org/worg/org-contrib/org-collector.html

Instead of:
#+BEGIN: propview :id "december" :conds ((string= spendtype "food"))
:cols (ITEM amount)
| "ITEM"                           | "amount" |
|----------------------------------+----------|
| "Grocery Store [2008-12-01 Mon]" |    56.77 |
| "Restaurant [2008-12-08 Mon]"    |    30.67 |
|----------------------------------+----------|
|                                  |          |
#+END:

I get:

#+BEGIN: propview :id "december" :conds ((string= spendtype "food"))
:cols (ITEM amount)
| ITEM | amount |
|------+--------|
|------+--------|
|      |        |
#+END:

and instead of:

#+BEGIN: propview :cols (ITEM (+ 400 amount)) :scope tree :match "example"
|
"ITEM"                                                                         
| "(+ 400 amount)" |
|---------------------------------------------------------------------------------+------------------|
| "December Spending                                                  
:example:" |                0 |
| "Week
One"                                                                     
|                0 |
| "Grocery Store [2008-12-01
Mon]"                                                |           456.77 |
| "Athletic club [2008-12-02
Tue]"                                                |            475.0 |
| "Week Two
"                                                                    
|                0 |
| "Restaurant [2008-12-08
Mon]"                                                   |           430.67 |
|---------------------------------------------------------------------------------+------------------|
|                                                                                
|                  |
#+END:


I get:

#+BEGIN: propview :cols (ITEM (+ 400 amount)) :scope tree :match "example"
| ITEM                                 | (+ 400 amount) |
|--------------------------------------+----------------|
| "** December Spending"               |              0 |
| "*** Week One"                       |              0 |
| "**** Grocery Store [2008-12-01 Mo]" |              0 |
| "**** Athletic club [2008-12-02 Di]" |              0 |
| "*** Week Two"                       |              0 |
| "**** Restaurant [2008-12-08 Mo]"    |              0 |
|--------------------------------------+----------------|
|                                      |                |
#+END:

Basically all the columns/properties are always 0. I tried also with
other properties, but nothing worked.
I have nothing in the *Messages* or *Warnigns* buffer to post here.
I might be doing something wrong. Its the first time using org-collector
for me.
I'm using emacs 25.1.1. I believe org-mode and org-collector are shipped
by default with this.
Any help would be appreciated.

Cheers Malte

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-collector not working
  2017-01-02 18:07 org-collector not working Malte Deiseroth
@ 2017-01-11  1:36 ` Charles Millar
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Millar @ 2017-01-11  1:36 UTC (permalink / raw)
  To: emacs-orgmode

Hi Malte,


On 01/02/2017 01:07 PM, Malte Deiseroth wrote:
> Hello
>
> The org-collector seems to be broken. I followed the instructions on:
> http://orgmode.org/worg/org-contrib/org-collector.html
>
> Instead of:
> #+BEGIN: propview :id "december" :conds ((string= spendtype "food"))
> :cols (ITEM amount)
> | "ITEM"                           | "amount" |
> |----------------------------------+----------|
> | "Grocery Store [2008-12-01 Mon]" |    56.77 |
> | "Restaurant [2008-12-08 Mon]"    |    30.67 |
> |----------------------------------+----------|
> |                                  |          |
> #+END:
>
> I get:
>
> #+BEGIN: propview :id "december" :conds ((string= spendtype "food"))
> :cols (ITEM amount)
> | ITEM | amount |
> |------+--------|
> |------+--------|
> |      |        |
> #+END:
>
> and instead of:
>
> #+BEGIN: propview :cols (ITEM (+ 400 amount)) :scope tree :match "example"
> |
> "ITEM"
> | "(+ 400 amount)" |
> |---------------------------------------------------------------------------------+------------------|
> | "December Spending
> :example:" |                0 |
> | "Week
> One"
> |                0 |
> | "Grocery Store [2008-12-01
> Mon]"                                                |           456.77 |
> | "Athletic club [2008-12-02
> Tue]"                                                |            475.0 |
> | "Week Two
> "
> |                0 |
> | "Restaurant [2008-12-08
> Mon]"                                                   |           430.67 |
> |---------------------------------------------------------------------------------+------------------|
> |
> |                  |
> #+END:
>
>
> I get:
>
> #+BEGIN: propview :cols (ITEM (+ 400 amount)) :scope tree :match "example"
> | ITEM                                 | (+ 400 amount) |
> |--------------------------------------+----------------|
> | "** December Spending"               |              0 |
> | "*** Week One"                       |              0 |
> | "**** Grocery Store [2008-12-01 Mo]" |              0 |
> | "**** Athletic club [2008-12-02 Di]" |              0 |
> | "*** Week Two"                       |              0 |
> | "**** Restaurant [2008-12-08 Mo]"    |              0 |
> |--------------------------------------+----------------|
> |                                      |                |
> #+END:
>
> Basically all the columns/properties are always 0. I tried also with
> other properties, but nothing worked.
> I have nothing in the *Messages* or *Warnigns* buffer to post here.
> I might be doing something wrong. Its the first time using org-collector
> for me.
> I'm using emacs 25.1.1. I believe org-mode and org-collector are shipped
> by default with this.
> Any help would be appreciated.
>
> Cheers Malte
>

See the discussion at the list https://www.mail-archive.com/emacs-orgmode@gnu.org/msg104915.html.
Nicolas Goaziou pointed out that

  'snip ((string= SPENDTYPE "food"))
snip
Properties are returned upper-cased by `org-entry-properties'.

Charlie Millar
  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-11  2:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-02 18:07 org-collector not working Malte Deiseroth
2017-01-11  1:36 ` Charles Millar

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).